JavaScript Example #4
This JavaScript first defines two variables firstName and lastName by using the prompt method. The results of the users input information is then displayed uisng the alert method.