Answers for "how to find the max size of an array"

1

get max number in array

console.log(arrayNumbers.sort((a, b) => a - b ));
Posted by: Guest on November-06-2021
2

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 "how to find the max size of an array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language