A
Q. Which one of the following options is the correct output for the given code of JavaScript?
Code:
var arr=[1, 3, 5, 8 ,11];
var value =Math.max.apply(null,arr);
document.writeln(value);
var value =Math.max.apply(null,arr);
document.writeln(value);
- Correct Answer - Option(B)
- Views: 7
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.