JavaScript String Object
The bold() method is used to display a string in bold.
This method returns the string embedded in the <b> tag, like this:
<b>string</b>
![]()
The bold() method is supported in all major browsers.
Display a text in bold:
JavaScript String Object
Your message has been sent to W3Schools.