Code to go logo
Created using Figma
Use Cases
Contribute
How to decrement a variable in JavaScript
Numbers
By Jad Joubran ·
Last updated Feb 27, 2024
let limit = 10; limit--; console.log(limit);
9
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 increment a variable in JavaScript