// First and last name function getFullName() { var firstName = prompt("What is your first name?"); var lastName = prompt("What is your last name?"); return firstName + " " + lastName; } getFullName();
// First and last name function getFullName(firstName, lastName) { return lastName + ", " + firstName; } getFullName("Kevin", "Gao");