Code to go logo
Created using Figma
Use Cases
Contribute
How to increment a variable in JavaScript
Syntax
By Jad Joubran ·
Last updated Feb 27, 2024
let counter = 0; counter++; console.log(counter);
1
Feb 27, 2024
1
Jad Joubran
See answer
1
Jad Joubran
Arithmetic operators
on MDN
Learn JavaScript step by step
Related use cases
How to decrement a variable in JavaScript