R

Ram Sharma • 193.86K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 159
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics