Project 5 - Javascript III - Part B

  1. Login to your W3 Schools Spaces account and open your project5.html file.
  2. Create a custom function that accepts two parameters.
  3. The parameter names are firstName and lastName.
  4. Have the function return both parameters with a blank space in between them.
  5. Create a 2nd custom function that does a few things:
    1. it calls the 1st custom function using your first and last name for the arguments.
    2. Please alert() out the returned value.
    3. Please log to the browser console, the returned value.
    4. Use innerHTML to insert the returned value to the paragraph with the ID of 'target'
  6. Call your 2nd function using an annonymous function that applies an onclick event handler to a button on the page.

Now go back to your course and review Chapter 11 of the Javascript Foundations StudioWeb course.