Início → Teste de ES6
8 perguntas sobre os recursos que chegaram ao JavaScript a partir do ES6: let/const, arrow functions, desestruturação e mais.
var
function
let
const
if/else
function(a, b) { return a + b }
(a, b) => a + b
a, b => { a + b }
func (a, b) => a + b
const { name, age } = user;
...arr
import/export
function greet(name = "Convidado") {}
greet()
class
Você também pode gostar