What does ‘let’ stands for in ES6 and other programming languages

A lot of people are confused with some programming languages syntax because of let keyword. Because previously we all met a very popular and straightforward word var that comes from ‘variable’. So what does ‘let’ stands for?

let myVariable = 'some text';

The answer is – let keyword is used in the English verb “let” (letting something to happen).

Let’s look through the code above to explain this. With this instructions you are asking the computer to let the next declaration:

// computer, i want you to
// this happen
myVariable = 'some text';



Leave a Reply

Be the First to Comment!