Hi, in ES6 we have enhanced in object literals. Es6 added some new syntax for create properties. First if you want to read about “Object literals” in ES5 you can read my post. In ES6 we can defining properties like this: Result: In ES6 we can define methods with new syntax: Result: Note: this ways … Continue reading ES6 – Object literals
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed