Test the Limits
JavaScript
10 pts
Test the Limits
Explore the limits of numbers:
- Print
Number.MAX_SAFE_INTEGER. - Create
next=Number.MAX_SAFE_INTEGER + 1and printNumber.isSafeInteger(next). - Create
huge=Number.MAX_VALUE * 10and print it. - Print
Number.isFinite(huge).
Expected output:
9007199254740991 false Infinity false
Checklist
- Print the safe limit from
Number. - Create
nextand check if it is safe. - Create
hugeand check if it is finite. - The four lines match.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
