Introduction To Programming
10-152-310

Learning Plan 2 : Variables and Data Types

Student

  • Name:
  • Section:
  • Email:

Lab Steps

  • Open this file in Firefox/Chrome and Microsoft Visual Studio
  • Add your name, section, and email
  • In the right place for your JavaScript code, add some lines of text that will be ignored by JavaScript.
  • Save the file
  • Refresh the page in your browser
  • Do you see anything? (good).
  • Next, add this line to the code:
    • document.write("JavaScript is fun.");
    • Just type it, don't copy and paste, it helps you learn.
  • Save, Refresh, and View
  • Now add this line of code after the first one:
    • document.write("<h1>A Big Hello</h1>");
  • Refresh the page and look for the big hello
  • All done.

        

What You Did

You practice typing JavaScript comments and some JavaScript code.