Parameters or Arguments
There are no parameters or arguments for the bold() method.
The bold() approach returns a reproduction of string enclosed in and tags.
The bold() technique does not trade the cost of the authentic string.
var totn_string = 'TechOnTheNet'; console.log(totn_string.bold());
In this example, we have declared a variable called totn_string that is assigned the string price of ‘TechOnTheNet’. We have then invoked the bold() approach of the totn_string variable to return a string that includes the HTML element.
We have written the output of the bold() approach to the internet browser console log, for demonstration purposes, to show what the bold() approach returns.
The following will be output to the web browser console log:
As you can see, the bold() technique created a string that incorporates a element. The fee of the totn_string variable (which is ‘TechOnTheNet’) is enclosed within the and tags.