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. And now let’s talk about Relaxed JSON, where working with JSON has become a breeze with minimal keystrokes.
let title = "Programming Ruby" let price = 12.4 //Old style // let book = { // title: title, // price: price, // buy: function(store){ // console.log("Buying from " + store); // } // } //New Style let book = { title, price, buy(store){ console.log("Buying from " + store); } } console.log(book); book.buy("Amazon")
You can watch the video here