This is the second of series of posts that explore new features of ES6 so in this post lets look at const keyword and template literals introduced in ES6.
const keyword
In previous versions of JavaScript there was no way to define a constant value. Developers just used only upper case letters to declare a constant variable like,
var SEC_KEY="1234567";
But it could be changed at a latter part of the code.
var SEC_KEY="1234567";
SEC_KEY="abcdefg";
console.log(SEC_KEY);