Easy Tutorial
❮ Met Console Group Prop Style Background ❯

JavaScript bold() Method


Definition and Usage

The bold() method is used to display a string in bold.

This method returns the string wrapped in <b> tags, as shown below:

<b>string</b>

Syntax


Browser Support

All major browsers support the bold() method.


Example

Displaying a string in bold:


❮ Met Console Group Prop Style Background ❯