How to define variable in JavaScript

Syntax
By Jad Joubran · 
Last updated Feb 27, 2024
// Variables that can be re-assigned
let counter = 0;
counter += 1;

// Variables that cannot be re-assigned
const ageLimit = 18;
let on MDN