How to increment a variable in JavaScript

Syntax
By Jad Joubran · 
Last updated Feb 27, 2024
let counter = 0;
counter++;
console.log(counter);
1