Saved Bookmarks
| 1. |
Explain the difference between the statements.documerit.write (“welcome”); and alert (“welcome)”; |
|
Answer» 1. document.write () is a JavaScript command used to print anything on the browser window. 2. document write (“welcome”) prints “welcome” on the browser window. 3. alert (“welcome”). This is a built in function used to display a message here the message “welcome” in a separate window. |
|