# Caracteristicas ES6
# Destructuracion objetos
let avengers = {
nick: 'Samuel Jackson',
ironman: 'Robert Downey',
vision: 'Paul Bettany',
};
const { nick, ironman, vision } = avengers;
# Destructuracion array
let avengersArray = ['Samuel Jackson', 'Robert Downey', 'Paul Bettany'];
const [avenger1, avenger2, avenger3] = avengersArray;
# Nuevo ciclo for Of
for (let avenger of avengersArray) {
console.log(avenger);
}
← Depuración Clases →