You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JavaScript has only one type of numbers, it does not define different types of numbers, like integers, short, long, floating-point etc. A number could be a **Float** (ex: 1.23) or an **Integer** (ex: 10).
3
+
JavaScript has **only one type of numbers** – 64-bit float point. It's the same as Java's `double`. Unlike most other programming languages, there is no separate integer type, so 1 and 1.0 are the same value.
4
4
5
-
There is nothing magical or strange going on with these. You define variables and set their values to any number type.
6
-
7
-
In this chapter, we'll learn how to create numbers and perform operations on them (like additions and subtractions).
5
+
In this chapter, we'll learn how to create numbers and perform operations on them (like additions and subtractions).
0 commit comments