CJCoding With Joseph
← Back to Question List
JavaScript Code Walkthrough #47

Post- and Pre-Increment Together

mediumOperators

📄 Code

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

🎯 Your Answer