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 let // this happen myVariable = 'some text';
Leave a Reply
Be the First to Comment!