Nguyễn Tâm Hảo
New member
What will be the output of the following JavaScript code?
A. 7
B. 5
C. 1
D. 9
Code:
var arr = [7, 5, 9, 1];
var value = Math.max.apply(null, arr);
document.writeln(value);
B. 5
C. 1
D. 9