O'Reilly logo

Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond by JD Isaacks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unit 1. Variables and strings

One of the most familiar statements in JavaScript is the var statement. But the addition of let and const means that var will soon be used much less. The var statement isn’t going away, and can still be used, but most programmers will soon opt to use const to declare variables anytime they don’t need to be reassigned and let anytime they do. In the first two lessons in this unit, you’ll discover why that is.

The following two lessons will cover new string methods and a new type of string called a template. Templates are handy and will make the old, tedious task of concatenating large strings at author-time (at the time the code is being written) a thing of the past. Templates also have a less-known feature called ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required