How to find the max value in an array with JavaScript

1 Answer

0 votes
const array = [49, 33, 97, 58, 48, 75, 95, 6, 55, 15];
 
console.log(Math.max(...array));
 
 
 
      
/*
run:
    
97
  
*/

 



answered Jan 28, 2023 by avibootz

Related questions

...