jaymascarenas
2/5/2019 - 5:08 AM

Split Full Name

var fullName = "John Fitzgerald Kennedy".split(' '),
    firstName = fullName[0],
    lastName = fullName[fullName.length - 1];