JavaScript has evolved dramatically since the introduction of ES6 (ECMAScript 2015).
This post explores key features that transformed the language and how developers use them today.
The introduction of let and const changed how we think about variable declarations:
// Old way
var name = "JavaScript";
var version = 6;
var released = true;
// Modern way
const name = "JavaScript";
let version = 6;
const released = true;