Answers for "Math max js"

31

javascript biggest number

console.log(Number.MAX_SAFE_INTEGER);
// expected output: 9007199254740991
Posted by: Guest on July-16-2020
2

Find the maximum number of an array js

var arr = [1, 2, 3];
var max = arr.reduce(function(a, b) {
  return Math.max(a, b);
});
Posted by: Guest on October-22-2020
0

get largest number in array javascript

var arr = [1, 2, 3];
var max = arr.reduce(function(a, b) {
  return Math.max(a, b);
});
Posted by: Guest on August-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language