JavaScript String fixed() Method

Definition and Usage

The string fixed() method is deprecated in JavaScript.

Avoid using it.

It may stop running at any time in your browser.

fixed() The method returns a string embedded in the <tt> tag:

<tt>string</tt>

HTML5 does not support the <tt> tag.

Example

let text = "Hello World!";
let result = text.fixed();

Try It Yourself

Syntax

string.fixed()

Parameters

No parameters.

Return Value

A string embedded in the <tt> tag.