The sup() method is used to display a string as superscript text.
The sup() method is used to display a string as superscript text.
This method returns the string embedded in the <sup> tag, like this:
<sup>string</sup>
string.sup()
None
A string embedded in the <sup> tag
Display a string as superscript text:
//display a string as superscript text. var str = "Hello World!"; var result = str.sup(); console.log(result);//from w w w . j a v a2s . c o m