JavaScript Objects The Strings Object-italics() - Javascript Objects

What is JavaScript String - italics() Method?

This method causes a string to be italic, as if it were in an <i> tag

Syntax

Its syntax is as follows −


Return Value

Returns the string with <i> tag.

Example

Try the following example.

Output

<i>Hello world</i>


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Javascript Objects Topics