Q. Find output of below Javascript code

Code:
var a = 10;
document.write(a=20);
  • (A) 10
  • (B) 20
  • (C) Error
  • (D) Nothing is printed
πŸ’¬ Discuss
βœ… Correct Answer: (B) 20

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
254
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
90%
Success Rate