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