Answers for "how to find the lowest number in an array in javascript for specific indexes"

0

how to find the lowest number in an array in javascript for specific indexes

var index = 0;
var value = temp[0];
for (var i = 1; i < temp.length; i++) {
  if (temp[i] < value) {
    value = temp[i];
    index = i;
  }
}
Posted by: Guest on October-25-2020

Code answers related to "how to find the lowest number in an array in javascript for specific indexes"

Code answers related to "Javascript"

Browse Popular Code Answers by Language