Q. Which one of the following options is the correct output for the given code of JavaScript?

Code:
var values=["Three","two","one"];  
varans=values.shift();  
document.writeln(ans);  
  • (A) One
  • (B) two
  • (C) three
  • (D) error
πŸ’¬ Discuss
βœ… Correct Answer: (C) three

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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