Skip to content

Commit 1a4088a

Browse files
authored
Merge pull request exlskills#19 from borsec-suveran/patch-16
Update 02_.md
2 parents 21e484d + fbca2be commit 1a4088a

File tree

1 file changed

+1
-1
lines changed
  • 02_Data Types and Variables/00_Data Types/03_Numbers in JavaScript

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The sample code above shows four different examples of variables holding numbers. The first line shows an integer declaration as the integer 5 is being declared into the variable `value`. The second line assigns a rough estimate of PI into the variable `pi`. The third line creates a new object using `new Number()`, which essentially does the same thing as the two statements above. Creating Number objects slows down execution speed and complicates the code, so is not recommended. The last variable declaration assigns `biggestNum` to the maximum value of a number, which is approximately 1.8 x 10^308. The minimum value for JavaScript numbers is 5 x 10^-324. This gives you an opportunity to create a variety of programs that uses big or small numbers.
1+
The sample code above shows four different examples of variables holding numbers. The first line shows an integer declaration as the integer 5 is being declared into the variable `value`. The second line assigns a rough estimate of PI into the variable `pi`. The third line creates a new object using `new Number()`, which essentially does the same thing as the two statements above. Creating Number objects slows down execution speed and complicates the code, so is not recommended. The last variable declaration assigns `biggestNum` to the maximum value of a number, which is approximately 1.8 x 10^308. The minimum value for JavaScript numbers is 5 x 10^-324. This gives you an opportunity to create a variety of programs that use big or small numbers.

0 commit comments

Comments
 (0)