How to find the biggest number in array
How can I find the biggest number from the numbers I've entered in array?
things i've tried already:
var largest = Math.max.apply(Math, number[i]); var smallest = Math.min.apply(Math, number[i]);
You're very close:
You need to pass all of the elements of the array to the max() metho; [i] doesn't make sense here.