Frontend Web Development
      Assignment for Week 9
    
    
      - Create an HTML file. (Start with the HTML file in Assignment 1 as a basis. Feel free to skip the CSS creation/linking steps.)
- Create a JS file (a blank file with a .jsextension).
- Add a <script>tag to the end of the<body>in the HTML file. Set itssrcattribute to the name of your JS file.
- In the JS file, declare a variable called createNameand assign it a function:
          - The function should accept two parameters, firstandlast.
- It should return a string which concatenates first, a space, andlast.
 
- Declare another variable called askNameand assign it another function:
          - In the function, declare a variable called first, and assign it the result of thepromptDOM function call, which should ask for your first name.
- Declare a variable called last, and assign it the result of anotherpromptcall, which should ask for your last name.
- Declare a variable called fullName, and assign it the result of calling thecreateNamefunction we created above, passing in thefirstandlastvariables.
- Call the alertDOM function, using thefullNamevariable to tell the user what their full name is, e.g.Your name is John Smith! .
- No returncommand necessary.
 
- Call the askNamefunction.
    Extra credit:
    
      - In the HTML file, add an idattribute to the<p>tag, and set it to"asker".
- Add a line to the JS file that passes in that idvalue as a parameter of  thedocument.getElementByIdfunction call, then sets its result'sonclickvalue to theaskNamevariable.
- If all goes well, clicking on the paragraph on your page should pop up first/last name prompts.
    More extra credit:
    
      - Modify askNameto keep asking for your name until your full name is Murray Stenson.
    Solution