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