+1 vote
in JavaScript by
Code A: var x = 10; y = --x + 1;

alert(y);

Code B: var x = 10;

y = x-- + 1;

alert(y);

What is the output for code A and B?

10,11

10,10

11,10

11,11

1 Answer

0 votes
by
10,11

Related questions

0 votes
asked Mar 9 in JavaScript by DavidAnderson
0 votes
asked Apr 8, 2021 in JAVA by SakshiSharma
...