Answers for "how to find smallest number in array using jquery"

10

javascript find smallest number in an array

const arr = [14, 58, 20, 77, 66, 82, 42, 67, 42, 4]
const min = Math.min(...arr)
console.log(min)
Posted by: Guest on February-16-2020
1

get smallest value in array js

var test=[1, 2, 4, 77, 80];
console.log("Smallest number in test: "+Math.floor(Math.min(test)));
Posted by: Guest on April-24-2021

Code answers related to "how to find smallest number in array using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language