A lot of water in the river has passed since my last posts about Javascript. It was not easy to find time for the next part. But ... I succeeded and would like to share something that has been both...
destructuring In the current post, we will start with the code using ES5 syntax. var expense = { type: "Business", amount: "50$" }; Imagine we have a simple code like that somewhere in the pr...
In the past, we had to have access to external libraries to use most of these methods. They were very popular and therefore it was decided to enter the ES6 standards. Now we have 7 Array Helper Met...
REST What is rest in ES6? The rest parameter syntax allows us to represent an indefinite number of arguments. We know that in JavaScript functions can have any number of parameters. Besides, we d...
Classes Before we start discussing Classes in JavaScript, one thing needs to be explained. Classes in JavaScript are more like syntatic sugar than the new feature. Nevertheless, as in the case of ...
(Fat) Arrow Functions We all wrote a lot of functions but let's start with a simple one that adds two arguments. var add = function(a,b) { return a + b; } Of course, everything is correct a...
Introduction In the beginning, I would like to congratulate everyone who has read some of my posts about JavaScript! Of course, there is nothing to prevent you from starting from here, but I th...
You can find previous part of this series here. We already know that a function is a special type of object and has several properties, we already discussed it. To better understand what we are go...
After Immediately Invoked Function Expression, it's time for another very important topic. Closures At the moment, I hope that reading everything from the previous parts will pay off for a better...
The time has come to meet seen almost everywhere, the very popular IIFEs. Immediately Invoked Function Expressions What is IIFE really? Let's start with the fact that we already know what a Funct...