Friday, November 18, 2016
Lab 3
For lab 3 we had to put into practice the different ways to display date unsing lines of JavaScript code. The easiest alert box is the window.alert box which basically forces the user to read a message before continuing visiting the page. The document.write output focuses on having the user type something in that will often be displayed on the output stream. The console.log displays the expression that you put into the parenthesis only displaying the answer which is often arithmetic . There are so many displays that could be included into your file to make it more proffesinal like. Another one that is very useful for asking questions and actually making the user answer it so they could continue viewing the content on your page is the prompt window. This allows you to control who visits your program more carefully.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment