I have been revisiting JS variables (or declaration) for about two-weeks with an aim to understand deeply. I had only a general overview of JS variables previously but had avoided learning associated topics like scope & hoisting. Nevertheless, I had felt that I understood those topics but clearly I was wrong. This time around I […]
Logic will get you from A to B. Imagination will take you anywhere. Albert Einstein
Declaration with let & Temporal Dead Zone
Note: This post is work-in-progress learning-note and still in active development and updated regularly. In ECMAScript 2015 (ES6), a new let keyword was introduced to declare JS variables. Variables declared with let keyword declares a block scope local variable, optionally initializing it to a value. Temporal dead zone is referred in MDN, as follows: In […]
Declaring JS Variables – var, let & const
Note: This post is work-in-progress learning-note and still in active development and updated regularly. JavaScript (JS) variables are an important concepts. JS variables are used as containers to store different data types. To understand and use JS variables, we must of be familiar with variable scope and variable hoisting. Lets look at some of the […]
When to Use Strict Mode in JavaScript
This post is work-in-progress learning-note and still in active development and updated regularly. JavaScript, since introduced in 1995, has been evolving without much compatibility issues and standardized script rules. In ECMAScript 5 (ES5), new features, syntax rules including Strict Mode feature were added in the language. In MDN, Strict Mode is referred as a way […]
Two days before, I wrote my thought-post on JavaScript Functions after I got confused with function scope & hoisting and felt like I got stocked forever. To-day I came across very inspirational article A Lifetime of Learning to Code in medium.
To quote from Tyler Elliot Bettilyon’s post:
If you don’t understand any .. general principles then you may have to understand this code from scratch — and that’s a lot harder.
We all start our careers knowing relatively little. Hopefully we finish them knowing quite a lot more.
Tyler reminds in his post that learning & mastering a programming language takes about 10-years. This also is a great reminder that getting frustrated after three-months of learning is not realistic.
