Copyright © 2014 by tutorialspoint
This method causes a string to be displayed as bold as if it were in a <b> tag.
Here is the detail of parameters:
Returns the string with <bold> tag.
var str = new String("Hello world");
This will produce following result:
To understand it in better way you can Try it yourself.