JavaScript
Array destructuring

by Benny Neugebauer

const parts = 'Homer Simpson'.split(' ');
const first = parts[0];
const last = parts[1];
console.log(first); // "Homer"

const [first, last] = 'Homer Simpson'.split(' ');
console.log(first); // "Homer"