Introduction To Programming
10-152-310

Learning Plan 2 : Variables and Data Types

Student

  • Name:
  • Section:
  • Email:

Lab Steps

  • Open this file in both Firefox and Microsoft Visual Studio
  • Add your information to the file
  • Test that you added your information correctly
  • In Microsoft Visual Studio, go to this spot in the code:
                	
                
  • Type this code exactly as it appears into the coding area below the above comment. Yes, you could easily just copy and paste it. However, you will learn much more by typing it yourself. You can't avoid typing, that's what we do for a living!
    • Replace "Write a description of the application here." with a description of what the application does.
    • Replace "Your Name Here!" with your actual name.
    /* 
      Write a description of the application here.
    */        
    var yourName = "Your Name Here!"
    document.write("Hi, ");
    document.write(yourName);
    document.write("! Nice to see you.");
        
  • Now run the application by refreshing the page.

Your Output:


        

What You Did

We just typed a small JavaScript application and ran it. We also started using the course coding standards, maybe without realizing it. Now might be a good time to review the JavaScript Coding Standards for 10-152-310.