Find max value

console.log(Math.max(...items)); // 40

Find min value

console.log(Math.min(...items)); // 5

BY Best Interview Question ON 10 Aug 2022

Suggest An Answer