Answers for "min and max javascript"

1

min and max javascript

Math.max(1, 2, 3)    // 3
Math.min(1, 2, 3)    // 1

var nums = [1, 2, 3]
Math.min(...nums)    // 1
Math.max(...nums)    // 3
Posted by: Guest on April-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language