JS Basic Tutorial
In JavaScript, numbers are used to represent both integer and floating-point values. JavaScript has only one type of number (unlike other languages which may have int
, float
, double
, etc.).
1
, 42
, -10
)3.14
, -0.99
)e
(e.g., 5e3
is 5000
)parseInt("hello")
)