Difference between var, let and const
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();
...
akashdeshpande.hashnode.dev4 min read
Vijay Thirugnanam
Inference Service @ Cerebras
Always good to read about the basics!