Skip to content

Glossary: TypeScript Basics

valueAsNumber

A property of a number input box that gives the typed number, or `NaN` if the box is empty. This is better than `value`, which is always a string.

Where the book teaches it

Related terms

HTMLInputElement