JavaScript bold () method
Definition and Usage
bold () method for the string appears in bold.
This method returns a string plus <b> tag, as follows:
<B> string </ b>
grammar
string.bold()
Browser Support
All major browsers support bold () method.
Examples
Examples
Use bold string:
<script>
var str = "Hello world!";
document.write(str.bold());
</script>
var str = "Hello world!";
document.write(str.bold());
</script>
try it"
JavaScript String Object