alert("Good morning, " + prompt("What is your name?", "") + "!"); What does this snippet of code accomplish?
- compares 2 strings of text & returns a value of True or False
- displays message 2 user when page loads, prompts him to supply name in form
- It assigns the name supplied by a user as a value to the alert variable.
- concatenates 2 methods to display message then request & capture user input