Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 2: Integration of JavaScript with HTML!

Instruction

Output from a JavaScript Program

JavaScript program output is normally written either to the web page that contains it, the console if it is information that is only of use to a programmer, or to a dialog box. These three options are explained below.

  • Web Page Output: Output can be written on the web page so that the user can see it. To write HTML code on the document, the document.write() function is used. The documen...