JavaScript: ES6+ Features
110 cards · 🇺🇸 English
Modern JavaScript syntax: let/const, arrow functions, destructuring, and more.
Study all 110 cards for free
Flashcards, quizzes, pixel-art games and a daily review that remembers for you.
Try the first 10 cards
1 / 10let vs var
Tap the card for the answer · swipe right if you knew it, left if not
Already have an account? Sign in
Cards
- 1let vs varlet has block scope and cannot be redeclared, while var has function scope and can be redeclared
- 2What does const declare?A constant reference that cannot be reassigned (but the value itself may be mutable for objects/arrays)
- 3Arrow functionA concise function syntax using => that lexically binds this
- 4Template literal syntaxString literals using backticks (``) that allow embedded expressions with ${}
- 5Array destructuringSyntax to unpack array values into distinct variables: const [a, b] = [1, 2]
- 6Object destructuringSyntax to extract properties from objects: const {name, age} = person
- 7Spread operator for arrays... operator that expands array elements: [...arr1, ...arr2]
- 8Rest parameter syntax...args syntax that collects remaining function arguments into an array
- 9Default parameterA function parameter with a default value: function(x = 10)
- 10Object property shorthandConcise syntax for object properties when key and variable name match: {name} instead of {name: name}
- 11Computed property name syntaxUsing expressions as object keys with brackets: {[key]: value}
- 12Class in ES6Syntactic sugar over prototype-based inheritance using class keyword
- 13Constructor method in a classSpecial method for creating and initializing class instances
- 14Class inheritance syntaxUsing extends keyword: class Child extends Parent
- 15Super keywordCalls parent class constructor or methods from a child class
- 16Static methodA method called on the class itself, not on instances: static methodName()
- 17PromiseAn object representing eventual completion or failure of an asynchronous operation
- 18Three Promise statespending, fulfilled, rejected
- 19Promise.then()Method to handle fulfilled Promise with a callback function
- 20Promise.catch()Method to handle rejected Promise with an error handler
- 21Async keywordDeclares an asynchronous function that returns a Promise
- 22Await keywordPauses async function execution until Promise resolves, returns the resolved value
- 23ES6 module export syntaxexport keyword to make functions/variables available: export const foo = 1
- 24Default exportExport a single default value from a module: export default MyClass
- 25ES6 module import syntaximport keyword to use exported values: import {foo} from './module'
- 26For...of loopLoop that iterates over iterable objects (arrays, strings, etc.): for (const item of array)
- 27for...of vs for...infor...of iterates values, for...in iterates keys/indices
- 28Map in ES6A collection of keyed data items allowing any data type as key
- 29Set in ES6A collection of unique values (no duplicates)
- 30WeakMapA Map where keys must be objects and are weakly referenced (can be garbage collected)
And 80 more cards. Study the whole deck free
Articles about this deck
More Programming decks
See all- 🌐
APIs: REST, GraphQL & HTTP Status Codes
108 cards · 🇺🇸 English
REST and GraphQL API concepts plus common HTTP status codes.
- 🎨
CSS: Box-Modell, Selektoren & Media Queries
129 cards · 🇺🇸 English
Das CSS-Box-Modell, Selektortypen, Media Queries und Animationen.
- 📄
HTML : balises et attributs
99 cards · 🇺🇸 English
Éléments HTML essentiels et leurs attributs.
- 🎨
CSS: Box Model, Selectors & Media Queries
129 cards · 🇺🇸 English
The CSS box model, selector types, media queries, and animations.
- 🔒
Web Security: OWASP & Authentication
35 cards · 🇺🇸 English
Common web vulnerabilities (OWASP Top 10) and authentication concepts.
- 🎨
CSS : Flexbox et Grid
58 cards · 🇺🇸 English
Mise en page avec CSS Flexbox et Grid.
