// Supported in IE 6-11
const fullName = 'Adam Jones';
// ['Adam', 'Jones']
const splitOnSpace = fullName.split(' ');
console.log(splitOnSpace);
const first = splitOnSpace[0];
const last = splitOnSpace[1];
console.log(first); // Adam
console.log(last); // Jones