A number of JavaScript libraries these days, require strong understanding of the ES6 language. If you want to comfortably work with libraries like Redux, ReactJS, Relay, GraphQL it’s important to understand some of the latest concepts.
My first article/video in the series talks about Object Destructuring.
The second one, discusses Array Destructuring.
The third topic is on writing relaxed JSON.
The fourth topic is about using Rest operators.
The fifth topic is about using Spread operators.
The topic I have discussed here is Template Strings that allows you to interpolate strings and create multiline strings.
let name = 'Sam' //Old style //let message = 'Hi ' + name + '!' let message = `Hi ${name}!` let message2 = `Hello ${name.substring(0,1)}!` console.log(message2); let multineString = `This is a multiline string` console.log(multineString); let city = 'London' let msg = `I am in ${city}`//Not lazily evaluated city = 'Paris' console.log(msg);
You can watch the video here