Project 5 - Javascript III - Part B
- Login to your W3 Schools Spaces account and open your project5.html file.
- Create a custom function that accepts two parameters.
- The parameter names are firstName and lastName.
- Have the function return both parameters with a blank space in between them.
- Create a 2nd custom function that does a few things:
- it calls the 1st custom function using your first and last name for the arguments.
- Please alert() out the returned value.
- Please log to the browser console, the returned value.
- Use innerHTML to insert the returned value to the paragraph with the ID of 'target'
- 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.