javascript find smallest number in an array
snippet in javascript

javascript find smallest number in an array

user1907

const arr = [14, 58, 20, 77, 66, 82, 42, 67, 42, 4]
const min = Math.min(...arr)
console.log(min)