InterviewHubPRO
Section Overview
Q309

Question 309 of 521

Part 5: ES6+ Modern Syntax, Classes, Modules & Destructuring (254 - 328)

59%
JavaScript Internals (521 Qs)•Part 5: ES6+ Modern Syntax, Classes, Modules & Destructuring (254 - 328)

List down some of the features of ES6

Below are the list of some new features of ES6,

  1. Support for constants or immutable variables
  2. Block-scope support for variables, constants and functions
  3. Arrow functions
  4. Default parameters
  5. Rest and Spread Parameters
  6. Template Literals
  7. Multi-line Strings
  8. Destructuring Assignment
  9. Enhanced Object Literals
  10. Promises
  11. Classes
  12. Modules

Practical Code Example

javascript
// Prominent ES6 (ECMAScript 2015) Features:
const arrow = () => 'Arrow function';
const { a, b } = { a: 1, b: 2 }; // Destructuring
const template = `Value: ${a}`;    // Template Literals
class App {}                     // Classes
const p = new Promise(res => res('ES6')); // Promises