DEV Community

Salvietta150x40
Salvietta150x40

Posted on • Originally published at ma-no.org on

Core features overview of JavaScript syntax (ES6)

Several changes to JavaScript were introduced by ECMAScript 2015, also well-known as ES6. Here is a summary of a number of the foremost common options and syntactic variations, where applicable, with comparisons to ES5.Variables and constant comparisonIn the following table, we provide a brief overview of the concepts of scope and the differences between let, var, and const.KeywordScopeHoistingCan Be ReassignedCan Be RedeclaredvarFunction scopeYesYesYesletBlock scopeNoYesNoconstBlock scopeNoNoNoVariable declaration"Let" allows us to define variables. Originally we used the keyword "var" to declare our variables. However, when it comes to scope, it has some limitations because it does not offer a block scope. But… !

Read on 📖!

Top comments (0)