in JavaScript by
Q:
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

▼ Show 1 Answer

0 votes
by
10,11
JavaScript
Learn More with Madanswer
...