What will be the output of the following JavaScript code? [code] var arr=[1,2,3]; var rev=arr.reverse(); document.writeln(rev);

What will be the output of the following JavaScript code?
Code:
var arr=[1,2,3];  
var rev=arr.reverse();  
document.writeln(rev);
A. 1, 2, 3
B. 3, 2, 1
C. 3
D. 1
 

Tìm kiếm

Back
Top