Course · Section 2: JavaScript Fundamentals – Part 1 · Lecture 11: Data Types
Implement `isSafeInt(n)` returning whether `n` is a safe integer.
+ 1 hidden test run on Submit.
Safe integers are whole numbers representable exactly in a double, which Number.isSafeInteger checks directly.
Run your code to see results.