. Advertisement .
..3..
. Advertisement .
..4..
I would love to find greatest number in array javascript but I don’t know if this is the best way. Can you share with me more about the related knowledge?
Here is a suggestion for youconst array1 = [1, 3, 2];
Math.max(...array1);
// expected output: 3
1 Answer