Written by Emil Martinov who lives Rotterdam || Istanbul and loves everything js. He tweets mostly about js.
Functions have to states, a definition and invocation state. In the definition state, the engine reads the function definition and assigns…
Stack: Last in, first out. Think of pancakes, you start to eat from the warmest one. If you wanted to eat from the first one think of how…
String literal is any value that is inside '' or "" . In Javascript you can use them both, this allows you to write strings where "Emil…
The second console log will throw, as you can see from syntax highlighting, the a statement inside a template literal is not valid syntax…
Everything in Javascript is an object except the primitive values. Primitive values are passed by copy and objects by reference. Primitive…
Functions are one of the building blocks of programming, they are the worker bees that take away complexity from the main execution context…
In short: var creates a variable in its scope. Since Javascript does not have block level scope, variable lives in its scope and the…
Let us talk about scope first. Scope is a mechanism in computer science to hide level of detail and localize it. What does this mean exactly…
This is my first post. I have been postponing blogging for a long time. The reason for that was I couldn't decide whether to create my own…