Skip to content

Commit 714af11

Browse files
authored
Update README.md
1 parent 81af12d commit 714af11

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
190190
greet(); // Hello World!
191191
```
192192

193+
**[⬆ Back to Top](#table-of-contents)**
194+
193195
3. ### Classes
194196
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.
195197

@@ -212,7 +214,6 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
212214
}
213215
}
214216
```
215-
**[⬆ Back to Top](#table-of-contents)**
216217
2. **Class expressions:**
217218

218219
```js
@@ -256,6 +257,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
256257

257258
**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.
258259

260+
**[⬆ Back to Top](#table-of-contents)**
261+
259262
4. ### Enhanced object literals
260263

261264
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
340343
};
341344
```
342345

346+
**[⬆ Back to Top](#table-of-contents)**
347+
343348
5. ### Template literals
344349
Prior to ES6, JavaScript developers would need to do ugly string concatenation to creat dynamic strings.
345350

@@ -366,6 +371,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
366371
`
367372
```
368373

374+
**[⬆ Back to Top](#table-of-contents)**
375+
369376
6. ### Destructuring
370377

371378
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
396403
3. Parameter definitions
397404
4. for-of loop
398405

406+
**[⬆ Back to Top](#table-of-contents)**
407+
399408
7. ### Default parameters
400409

401410
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
420429
add(); // 30
421430
```
422431

432+
**[⬆ Back to Top](#table-of-contents)**
433+
423434
8. ### Rest parameter
424435
The rest parameter is used to represent an indefinite number of arguments 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.
425436

@@ -435,6 +446,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
435446
console.log(sum(1, 2, 3, 4, 5)); // 15
436447
```
437448

449+
**[⬆ Back to Top](#table-of-contents)**
450+
438451
9. ### Spread Operator
439452
Spread Operator allows iterables( arrays / objects / strings ) to be expanded into single arguments/elements.
440453

0 commit comments

Comments
 (0)