January 2017
Beginner to intermediate
550 pages
10h 6m
English
You will be working with objects and arrays all the time when you code. JavaScript object and array notations resemble the JSON format. You will define objects and arrays, and then retrieve elements from them. ES6 gives a convenient syntax that significantly improves the way we access properties/members from objects and arrays. Let's consider a typical code you would often write:
var config = {
server: 'localhost',
port: '8080'
}
var server = config.server;
var port = config.port;
Here, we extracted values of server and port from the config object and assigned them to local variables. Pretty straightforward! However, when this object has a bunch of properties, some of them nested, this simple operation can get very tedious to write. ...
Read now
Unlock full access