JavaScript String sup() Method

Definition and Usage

The String big() method has been deprecated in JavaScript.

It is not recommended to use the string sup() in JavaScript.

Please avoid using it.

It may stop running at any time in your browser.

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

<sup>string</sup>

Example

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

Try It Yourself

Syntax

string.sup()

Parameters

No parameters.

Return Value

String embedded in the <sup> tag.