A
Q. Which one of the following options is the correct output for the given code of JavaScript?
Code:
var arr=[4,3,2,1];
var rev=arr.reverse();
document.writeln(rev);
var rev=arr.reverse();
document.writeln(rev);
- Correct Answer - Option(B)
- Views: 22
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.