Safe Integer Lab
Easy
5
1
93.3% Acceptance
In this lab, you will create a function called isNumberSafe
, which checks if a given number is safe or not to use as an integer in JavaScript. This function should take in a single parameter (a number) and return a boolean value indicating the safety of the number. Use the Number.isSafeInteger()
method to perform this validation. Export the isNumberSafe
function using ESM (ECMAScript Modules) syntax.