Answers for "find the max number in an array js"

1

find the max number in an array js

var myPersons__ = document.querySelectorAll('.avtrlnk');
var maxId__ = [];
    
	for(var x = 0; x < myPersons__.length; ++x) {
		maxId__[x] = myPersons__[x].value;
	}
	myPersons__ = parseInt(maxId__.sort()[x-1]) + 1;
Posted by: Guest on October-29-2021

Code answers related to "find the max number in an array js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language