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()
var min = arr[0]
arr.forEach(item => min > item ? item : null)
console.log(min) //遍历