Last active
December 7, 2022 05:40
-
-
Save tobidosumu/cb4e1b7d149821b856083020469a85da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2. a. Write 10 differences between ES5 and ES6 | |
| Answer: | |
| 1. ES5 is the fifth edition of the ECMAScript (a trademarked scripting language specification defined by ECMA International). | |
| ES6 is the sixth edition of the ECMAScript (a trademarked scripting language specification defined by ECMA International). | |
| 2. ES5 was introduced in 2009. | |
| ES6 was introduced in 2015. | |
| 3. ES5 supports primitive data types that are string, number, boolean, null, and undefined. | |
| In ES6, there are some additions to JavaScript data types. It introduced a new primitive data type 'symbol' for supporting | |
| unique values. | |
| 4. In ES5, we could only define the variables by using the var keyword. | |
| In ES6, there are two new ways to define variables that are let and const. | |
| 5. As ES5 is prior to ES6, there is a non-presence of some features, so it has a lower performance than ES6. | |
| Because of new features and the shorthand storage implementation ES6 has a higher performance than ES5. | |
| 6. A wide range of communities supports ES5. | |
| It also has a lot of community support, but it is lesser than ES6. | |
| 7. ES5 is time-consuming than ES6. | |
| Due to destructuring and speed operators, object manipulation can be processed more smoothly in ES6. | |
| 8. In ES5, both function and return keywords are used to define a function. | |
| An arrow function is a new feature introduced in ES6 by which we don't require the function keyword to define the function. | |
| 9. In ES5, there is a use of for loop to iterate over elements. | |
| ES6 introduced the concept of for...of loop to perform an iteration over the values of the iterable objects. | |
| 10. In ES5, Object.assign() method is used to merge objects. | |
| But ES6 has introduced spread operator(…) to merge objects. | |
| 11. In ES5, Concatenation operator is used to join strings. | |
| But ES6 has introduced Template Literal(`) which allows to perform the string interpolation in convenient way. | |
| 12. ES6 has introduced Promise() which is a convenient way of handling callbacks. | |
| ES5 has no Promise() feature for handling callbacks. | |
| b.i. Write 10 JavaScript frameworks that use ES5 | |
| Answer: | |
| The following refer to JS framework versions releases before 2015: | |
| 1. AngularJS | |
| 2. Vue | |
| 3. Backbone | |
| 4. Ember | |
| 5. React | |
| 6. Knockout | |
| 7. SproutCore | |
| 8. Meteor | |
| 9. Polymer | |
| 10. Ionic | |
| b.ii. Apart from Express JS, write 15 JS frameworks that use ES6 | |
| Answer: | |
| The following refer to JS framework versions releases after 2015: | |
| 1. Next (React) | |
| 2. Nuxt (Vue) | |
| 3. Remix (React) | |
| 4. Svelte (Svelte) | |
| 5. Gatsby (React) | |
| 6. Astro (Any) | |
| 7. Gatsby | |
| 8. Node | |
| 9. Mocha | |
| 10. Jasmine | |
| 11. Jest | |
| 12. Aurelia | |
| 13. Ionic | |
| 14. Webix | |
| 15. Mithril | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment