Addition Development Tutorials, Guides & Insights
Unlock 1+ expert-curated addition tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your addition skills on DeveloperBreeze.
Adblocker Detected
It looks like you're using an adblocker. Our website relies on ads to keep running. Please consider disabling your adblocker to support us and access the content.
Arithmetic Operators
Tutorial December 11, 2024
javascript
- Initialize
counterto10. - Use both prefix and postfix increment/decrement operators and observe the outputs.
let counter = 10;
console.log(counter++); // 10
console.log(counter); // 11
console.log(++counter); // 12
console.log(counter--); // 12
console.log(counter); // 11
console.log(--counter); // 10