Inicio → Test de ES6
8 preguntas sobre las funciones que llegaron a JavaScript a partir de ES6: let/const, funciones flecha, desestructuración y más.
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 = "Invitado") {}
greet()
class
También te puede interesar