You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
190
190
greet(); // Hello World!
191
191
```
192
192
193
+
**[⬆ Back to Top](#table-of-contents)**
194
+
193
195
3. ### Classes
194
196
The classes are introduced as syntactic sugar over existing prototype based inheritance and constructor functions. So this feature doesn't bring new object-oriented inheritance model to JavaScript.
195
197
@@ -212,7 +214,6 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
212
214
}
213
215
}
214
216
```
215
-
**[⬆ Back to Top](#table-of-contents)**
216
217
2.**Class expressions:**
217
218
218
219
```js
@@ -256,6 +257,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
256
257
257
258
**Note:** Even though ES6 classes looks similar to classes in other object oriented languages, such as Java, PHP, etc but they do not work exactly the same way.
258
259
260
+
**[⬆ Back to Top](#table-of-contents)**
261
+
259
262
4. ### Enhanced object literals
260
263
261
264
Object literals are extended to support setting the prototype at construction, shorthand for foo: foo assignments, defining methods, making super calls, and computing property names with expressions.
@@ -340,6 +343,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
340
343
};
341
344
```
342
345
346
+
**[⬆ Back to Top](#table-of-contents)**
347
+
343
348
5. ### Template literals
344
349
Prior to ES6, JavaScript developers would need to do ugly string concatenation to creat dynamic strings.
345
350
@@ -366,6 +371,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
366
371
`
367
372
```
368
373
374
+
**[⬆ Back to Top](#table-of-contents)**
375
+
369
376
6. ### Destructuring
370
377
371
378
Destructuring is a javascript expression for extracting multiple values from data stored in objects(properties of an object) and Arrays.
@@ -396,6 +403,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
396
403
3. Parameter definitions
397
404
4.for-of loop
398
405
406
+
**[⬆ Back to Top](#table-of-contents)**
407
+
399
408
7. ### Default parameters
400
409
401
410
Default parameters allow named parameters of a function to be initialized with default values if no value or undefined is passed.
@@ -420,6 +429,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
420
429
add(); // 30
421
430
```
422
431
432
+
**[⬆ Back to Top](#table-of-contents)**
433
+
423
434
8. ### Rest parameter
424
435
The rest parameter is used to represent an indefinite number ofarguments as an array. The important point here is only the function's last parameter can be a "rest parameter". This feature has been introduced to reduce the boilerplate code that was induced by the arguments.
425
436
@@ -435,6 +446,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
435
446
console.log(sum(1, 2, 3, 4, 5)); // 15
436
447
```
437
448
449
+
**[⬆ Back to Top](#table-of-contents)**
450
+
438
451
9. ### Spread Operator
439
452
Spread Operator allows iterables( arrays / objects / strings ) to be expanded into single arguments/elements.
0 commit comments