• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

EXERCISES

1:What is wrong with the following alert box?
alert("Hello<br>", "world!<br>");

Create a JavaScript program that produces the previous alert box. When the alert dialog box appears, what does the program do?

2:What is the return value of the prompt method if the user doesn't enter anything? Where is the return value stored?
3:Create a JavaScript program that prompts the user for a phone number and then asks him for confirmation.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint