Numbers
In JavaScript, you can define numbers without decimal part:
or numbers with decimals:
Numbers are a primitive type in JavaScript.
This means they are passed by value, not by reference.
We’ll see what that means.
All numbers have some methods (we’ll see soon what methods are!) including toString()
, toFixed()
and some others.
Last updated
Was this helpful?