CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Post- and Pre-Increment Together

JavaScript code walkthrough · Question 47
mediumOperators

Code

Read carefully. What does this print?
1let a = 5;
2let b = a++ + ++a;
3console.log(a);
4console.log(b);

Your answer