/* 二进制声明:*/
let binary = 0b010101;
console.log(binary);
/* 八进制声明:*/
let x = 0o666;
console.log(x);
/* 数字判断和转换 */
let a = 11 / 4;
console.log(Number.isFinite(a)); //true
console.log(Number.isFinite("jspang")); //false
console.log(Number.isFinite(NaN)); //false
console.log(Number.isFinite(undefined)); //false
console.log(Number.isNaN(NaN)); //true
let b = 123.1;
console.log(Number.isInteger(b)); //false
let c = "9.18";
console.log(Number.parseInt(c));
console.log(Number.parseFloat(c));
let d = Math.pow(2, 53) - 1;
console.log(d); //9007199254740991
// 最大安全整数
console.log(Number.MAX_SAFE_INTEGER);
// 最小安全整数
console.log(Number.MIN_SAFE_INTEGER);
// 安全整数判断isSafeInteger( )
let e = Math.pow(2, 53) - 1;
console.log(Number.isSafeInteger(e)); //false
console