1. Create a global variable called inputFirstName.
2. Create a global variable called inputLastName.
3. Create a global variable called formattedName.
4. Create a function called createPipeFormat that will take 2 parameters, concatenate them together with a '|' between them, and return the result.
For example createPipeFormat("First", "Last") would return the string "First|Last"
5. Create a function called loadName( ). The function will do the following:
Use a prompt to ask the user to enter a first name.
Store the value in the inputFirstName variable.
Use a prompt to ask the user to enter a last name.
Store the value in the inputLastName variable.
Call createPipeFormat and store the result in the formattedName variable.
Add an event handler to the button below that will run the loadName( ) function.
6. Create a function called displayFormattedName( ). The function will do the following:
It will accept one input parameter
The function will display the value of the parameter in an alert with an appropriate message.
Add an event handler to the button below that will call the displayFormattedName( ). It will pass the formattedName variable as a parameter into the displayFormattedName( ).
7. Create a function called characterCount( ) and modify the code so the following button will display the number of characters in the formattedName variable.
8. Create a function called uppercaseName( ) and modify the code so the following button will display the formattedName variable in all uppercase letters in the paragraph below the button
9. Link in the external Javascript files provided to do the following: Points will be deducted if the external javascript files are not used.
Display the following amount formatted as currency. 234721.4.
Display today's date at the bottom of the page in the format of "Wednesday January 1, 2020".