JavaScript String sup()

❮ JavaScript String Reference

Example

let text = "Hello World!";
let result = text.sup();
Try it Yourself »

Description

String sup() is deprecated in JavaScript.

Avoid using it.

It may cease to work in your browser at any time.

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

<sup>string</sup>


Syntax

string.sup()

Parameters

NONE

Return Value

A string embedded in a <sup> tag

❮ JavaScript String Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.