Difference between var, let and const
Aug 10, 2021 · 4 min read · Declaring variables in JavaScript since ES6 can be done in different ways. Most prominent of those are using var, let and const. 1. Basic example on var Consider the examples below: /* Example 1 */ x = 10; function updatex() { x = 20; } updatex(); ...
VVijay commented