JavaScript fixed () method
Definition and Usage
fixed () method for the string appears as typewriter font.
This method returns a string plus <tt> tag, as follows:
<Tt> string </ tt>
grammar
string.fixed()
Browser Support
All major browsers support fixed () method.
Examples
Examples
Typewriter text to display the string:
<script>
var str = "Hello world!";
document.write(str.fixed());
</script>
var str = "Hello world!";
document.write(str.fixed());
</script>
try it"
JavaScript String Object