• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 2. Creating a Simple Script > Adding JavaScript Statements

Adding JavaScript Statements

To complete your script, you will need to determine what the local and UTC times are, and then display them to the browser. Fortunately all of the hard parts, such as converting between dates, are built into the JavaScript interpreter.

Storing Data in Variables

To begin the script, you will use a variable to store the current date. You will learn more about variables in Hour 5, “Using Variables and Functions.” For now, think of them as containers that can hold something (a number, or in this case, a date).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint