console.log(Number.MAX_SAFE_INTEGER);
// expected output: 9007199254740991
let maxY = Number.MIN_SAFE_INTEGER, minY = Number.MAX_SAFE_INTEGER;
Number.MAX_VALUE;
MAX_SAFE_INTEGER = 9007199254740991
//Returns number with highest value.
var x = Math.max(-5, 12, 27);
console.log(x)//27
Number.MAX_SAFE_INTEGER
if (penyakit === 'flu'){
let obatFlus = database.flu.obat
obatTermurah = ''
cheapest = Number.MAX_VALUE
for (let i = 0; i < obatFlus.length; i++){
let fluObat = obatFlus[i]
let obatName = fluObat[0]
let obatPrice = fluObat[1]
if(obatPrice < cheapest){
obatTermurah = obatName
cheapest = obatPrice
}
}
output = [obatTermurah, cheapest]
}
const num1 = 450;
const num2 = 350;
const num3 = 1000;
const maxNumber = Math.max(num1, num3, num2);
console.log("Bigger number is =", maxNumber);
//Output: Bigger number is = 1000