console.log(Number.MAX_SAFE_INTEGER);
// expected output: 9007199254740991
// Number.MAX_VALUE returns the largest number possible in JavaScript.
console.log(Number.MAX_VALUE)
// output 1.7976931348623157e+308.
function solution(n) {
return parseInt('9'.repeat(n));
}
//Returns number with highest value.
var x = Math.max(-5, 12, 27);
console.log(x)//27
arr.indexOf(Math.max(...arr))