JavaScript Assignment #1

"Hello World" Alert Message

Create a basic "Hello World" script - the simplest, most basic script that you can create in JavaScript, or any programming language.

  1. Create a basic, empty web page using only html code (see an example).
  2. The page should be completely empty except for the <doctype> <html>, <head>, <title>, and <body> tags that are necessary to make a valid html document.

  3. Insert a set of <script> tags between the <body> tags.
  4. Add alert("Hello World!") between the <script> tags.
Final result: "Hello World!" should immediately display in an alert message when the page loads.

Next assignment ... Assignment #2