πŸ“Š JavaScript
Q. Which of the following options would be the correct output for the given JavaScript code?
Code:
var x=0;  
for(x;x<10;x++);  
console.log(x); 
  • (A) 10
  • (B) 4
  • (C) 5
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) 10

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
179
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
87%
Success Rate