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