let email = 'john@example.com'
let localPart = email.slice(0,email.indexOf('@'));
let x = ["a", "b", "c", "d", "e", "f"];
console.log(Array.prototype.slice.call("abcdefg"))
/*[ 'a', 'b', 'c', 'd', 'e', 'f', 'g' ]*/
/*slice can turn a string into an array with its letters as elements*/