fix invalid codeWed, 30 Nov 2022

// 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");

Questions about programming?Chat with your personal AI assistant