code to explanationWed, 30 Nov 2022

// First and last name function getFullName(firstName, lastName) { return lastName + ", " + firstName; } getFullName("Kevin", "Gao");

This function takes two arguments firstName and lastName and returns a string firstName, lastName.

Questions about programming?Chat with your personal AI assistant