e v m

Emil Martinov

Written by Emil Martinov who lives Rotterdam || Istanbul and loves everything js. He tweets mostly about js.

Parameters vs Arguments

August 11, 2020 - 2 min read

Functions have to states, a definition and invocation state. In the definition state, the engine reads the function definition and assigns…

Stack vs Heap

August 11, 2020 - 1 min read

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 and String Template Literal

August 11, 2020 - 3 min read

String literal is any value that is inside '' or "" . In Javascript you can use them both, this allows you to write strings where "Emil…

Ternary Operator

August 11, 2020 - 2 min read

The second console log will throw, as you can see from syntax highlighting, the a statement inside a template literal is not valid syntax…

Pass by value vs Pass by Reference

August 08, 2020 - 4 min read

Everything in Javascript is an object except the primitive values. Primitive values are passed by copy and objects by reference. Primitive…

Functions

December 09, 2019 - 1 min read

Functions are one of the building blocks of programming, they are the worker bees that take away complexity from the main execution context…

var, let and const --- (bonus: hoisting)

November 10, 2019 - 7 min read

In short: var creates a variable in its scope. Since Javascript does not have block level scope, variable lives in its scope and the…

Scope && Closure

March 16, 2019 - 6 min read

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…

First post

January 24, 2019 - 4 min read

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…