JSON If you have not had any previous contact with JSON (JavaSCript Object Notation), it is inspired by Object Literals from JavaScript. Although they look similar, it is often a mistake to think ...
It is time to change the subject a bit. Objects When functions and objects are completely different in other languages, they are very similar in JavaScript. As I mentioned in one of the previous ...
In this part I would like to raise a topic that can be one of the strangest concepts in JavaScript. Coercion By this concept we mean converting a value from one type to another. As it was said be...
Types in JavaScript The way in which the JavaScript engine deals with types is called Dynamic Typing. It is based on the fact that there is no need to provide information about the type of variabl...
Scope Chain At the beginning I would like to talk about a similar case as we had in the last part. function a() { console.log(myVar); } function b() { var myVar = 2; a(); } var myVar = 1; ...
When we talk about JavaScript and how it works under the hood we can't forget about Variable Environments. It's related to the Function Execution Context too. Variable Environments There were onl...
In this post, I want to discuss one of the most important topics, which in a way is connected with the issue from the previous part. However, before we get to it, I want to explain quickly what Inv...
This part will be the shortest of all, but before the next posts, I would like to discuss these two concepts. Although the explanations provided here will be useful in subsequent posts, I think tha...
Execution Context: (Code) Execution Phase As you recall from the previous part, I mentioned that there are two phases that take place in the Execution Context. The first is Creation Phase, the sec...
In the current post I would like to develop some of what was discussed in part 3. At the beginning, we'll slightly change our one.js JavaScript file. var a = "Hello"; function b() { console.l...