var arr = [34, 12, 55, 27];
console.log(Math.min.apply(null, arr)
) // apply()
console.log(Math.min(...arr)
) // 擴展運算符
console.log(eval("Math.min(" + arr.toString() + ")")
) //eval()
console.log(arr.sort((a,b) => a - b)[0]
) // sort()app
var min = arr[0] arr.forEach(item => min > item ? item : null) console.log(min) //遍歷