« Back to home

ES6 Destructuring assignments

Posted on

In this article I’m going to talk about the Destructuring assignments in ES6. The Destructuring Assignments don’t really offer us any new features, but rather they enable us to write more readable and less repetitive code. So, have you ever had a function that was dealing with these enormous deeply nested objects and it felt like your code was kind of sprawling out of control, it was getting hard to read?…

Read more »

ES6 Arrow Functions

Posted on

Arrow functions are another notable addition that came with ES5 and are available here in ES2016. They are useful for two essential reasons: the first is that they reduce boilerplate and are more succinct and the second thing is that they allow us to preserve the context of the wrapping function. As I write before, the arrow function, one of its main features is that it’s more succinct, it reduces boilerplate.…

Read more »

ES6 - Limitations of using const and let

Posted on

As I mentioned at my previous article, one of the main things that we need to understand about const and let: is that const, is a constant, so, it’s not going to change and let is something that might change, it could change. Let’s explore a little bit what that means because this is actually a gotcha in some cases. So, be careful, const isn’t actually an immutable variable, it can be changed.…

Read more »

var, const and let in ES6, when I use? They can be hoisted?

Posted on

Perhaps the most recognizable addition to the JavaScript language was that of const and let. Two new key words that allow us to declare variables, which behave differently than var. When choosing which JavaScript variable to use, there are a number of factors we have to weigh. We have var, const, and let available to us, and we need to think what is the scope of each of these variables? That means, what can it be called?…

Read more »

ES5, ES6, ES7 and ES2015 and ES2016. Isn't it just all JS?

Posted on
Last modified on

JS, Why we love you? One of my biggest loves on the coding word is the JS (JavaScript) language. I don’t know why, but since I started to make simple code with JQuery and to research about the language under your hood and I got what is JS, the first thing that I did was thanked how the coding world can be really beautiful and simple with a programming language like that.…

Read more »