Q. How ++ works in Javascript? Find output of below Javascript code.

Code:
var a = 10;
document.write(a++);
document.write(a);
  • (A) 1010
  • (B) 1011
  • (C) 1110
  • (D) 1111
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1011

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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