...

Full Name

You're building a registration form for a website, and you need to display the user's full name based on their first and last name inputs.

In this exercise, you will write a program that:

  • Asks the user for their first name using the prompt function.
  • Asks the user for their last name using the prompt function.
  • Concatenates the first and last names into a full name.
  • Prints the full name to the console in the format: "Your full name is: FIRSTNAME LASTNAME".

Now it's your turn! Complete the code sample in the editor to display a well-formatted full name in the format: "Your full name is: FIRSTNAME LASTNAME".

Loading...

Output (Console)