Code to go logo
Created using Figma
Use Cases
Contribute
How to increment a variable in JavaScript
Syntax
By Jad Joubran ·
Last updated Nov 11, 2017
let counter = 0; counter++;
1
Nov 11, 2017
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