Phương thức fixed() của String trả về chuỗi bọc trong thẻ <tt> (teletype/monospace) – deprecated trong HTML5.
Ví dụ
<html>
<head>
<title>JavaScript String fixed() Method</title>
</head>
<body>
<script>
var str = new String("Hello world");
alert(str.fixed()); // Hello world
</script>
</body>
</html>