Learn ES6 without leaving Dev.to
Anderson. J Sep 7 Updated on Sep 16, 2018
Hi everyone! Today I'm finishing my ES6 course, so I'm here to share some posts that were useful while I was learning, here you go.
Var, let, const
"The var declares a variable, optionally initializing it to a value."
"The let statement declares a block scope local variable, optionally initializing it to a value."
"Constants are block-scoped, much like variables defined using the let statement. The value of a constant cannot change through re-assignment, and it can't be redeclared."
"An arrow function expression has a shorter syntax than a function expression and does not have its own this, arguments, super, or new."
"Template literals are string literals allowing embedded expressions. You can use multi-line strings and string interpolation features with them. "
"A iterator is a pointer that goes through the elements of an iterable object."
• "What the... iterators?" By: Fabio Russo
• "How I learned to Stop Looping and Love the Iterator" By: Kushan Joshi
Promises, async, await
"The Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value."
• "I promise I won't callback anymore" By: Damien Cosset
• "Asynchronous code with async/await" By: Damien Cosset
• "All about Promises and async / await" By: Arden de Raaij
"Every symbol value returned from Symbol() is unique. A symbol value may be used as an identifier for object properties; this is the data type's only purpose. "
"The class expression is one way to define a class in ECMAScript 2015. Similar to function expressions, class expressions can be named or unnamed. If named, the name of the class is local to the class body only."
"The Generator object is returned By a generator function and it conforms to both the iterable protocol and the iterator protocol."
"The Set object lets you store unique values of any type, whether primitive values or object references."
"The Map object holds key-value pairs. Any value (both objects and primitive values) may be used as either a key or a value."
OH! And thank you for reading my first entry ♥ 👋