Skip to content

Glossary: Software Design Patterns in JavaScript

toFixed

A number method that shows a number with a set number of decimals as text, so 467.5.toFixed(2) is "467.50".

Where the book teaches it

Related terms

padStart