ES6 Browser Support Currently ES6 is not supported completely Most of the features of ES5 are supported by all browsers Conversion from ES6 to ES5 required Babel Babel is a essentially an ECMAScript 6 to ECMAScript 5 compiler. It allows you to use ES6 features in your projects and then compiles ES5 for you to use in production.
Features in ECMA Script 6 New keywords for declaring variables let const Spread Operator For functions: Default parameters Arrow functions Classes
‘const’ creates a read-only reference to a value variable identifier cannot be reassigned Does NOT mean the value it holds is immutable ‘const’ keyword
allows an expression to be expanded works with: multiple arguments (for function calls) multiple elements (for array literals) multiple variables (for de structuring assignment) ‘Spread’ operator (…)
also known has “Fat Arrow Functions” and are always anonymous has a shorter syntax compared to function expressions make the JS code more readable Arrow Functions (=>)
introduced in ECMAScript 6 provide a much simpler and clearer syntax to create objects and deal with inheritance NOT introducing a new object-oriented inheritance model to JS Classes
Thank you! See you Again Soon “Success is that height of fame, where everyone in this world knows you by name” -Surbhi Agarwal https://in.linkedin.com/in/agarwalsurbhi @surbhiagarwal13