πŸ“Š JavaScript
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);  
  • (A) 1, 2, 3,4
  • (B) 4, 3, 2, 1
  • (C) 3
  • (D) 1
πŸ’¬ Discuss
βœ… Correct Answer: (B) 4, 3, 2, 1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
296
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yashika
Publisher
πŸ“ˆ
94%
Success Rate