Skip to content

Glossary: JavaScript Basics

parseInt / parseFloat

Also written: parseInt, parseFloat

Functions that read digits from the start of a string and stop at the first character that doesn't fit. `parseInt` keeps only the whole number.

Where the book teaches it

Related terms

Number (conversion)NaNType coercion