Copyright © 2014 by tutorialspoint
This method causes a string to be displayed as a subscript, as if it were in a <sub> tag.
Here is the detail of parameters:
Returns the string with <sub> tag.
var str = new String("Hello world");
This will produce following result:
To understand it in better way you can Try it yourself.