JavaScript String italics() methode

Definitie en gebruik

String italics() in JavaScript is verouderd.

Avoid using it.

It may stop running at any time in your browser.

italics() The method returns the string embedded in the <i> tag:

<i>string</i>

Example

let text = "Hello World!";
let result = text.italics();

Try it yourself

Syntax

string.italics()

Parameters

No parameters.

Return value

String embedded in the <i> tag.