JavaScriptIII

JavaScriptIII - Writing a lot of code without running....

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
ANNOUNCEMENTS No posting of code in the forum Bring paper and pencil to every lecture in case we have a pop up quiz Remember that our office hours are on the class web site (Staff section) 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 IMPORTANT REFERENCES Guide to Write Compute Programs Please bookmark the following in Chrome Class Web Page JavaScript Skeleton JavaScript Closure Compiler
Background image of page 2
3 REVIEW From now on we will use Chrome to run and to debug our programs (avoid running from within komodo) Let’s write a JavaScript program to review concepts discussed so far Typical problems Do not use spaces for variable names INVALID water temperature N umber(prompt(“Enter Value”)) N must be in caps For comparisons you must use === and NOT =
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Writing a lot of code without running. Write, check values and then add code Style Indentation Leave spaces around = + - * Do not leave space between Number and prompt in Number(prompt(Enter Value)); To rename variables you can use Komdo edit DEALING WITH ERRORS Notice the HTML validator will not help us with JavaScript Use the following site http://www.cs.umd.edu/~nelson/classes/utilities/JavaScript/JavaScriptDebugging/ For debugging, run your program in Chrome and not in Komodo edit Notice that when a syntactic error is present running the program generates a blank page 4 5 IN-CLASS LAB (25 MINUTES) Lets practice JavaScript by writing some programs...
View Full Document

This note was uploaded on 01/12/2012 for the course CMSC 122 taught by Professor Staff during the Fall '08 term at Maryland.

Page1 / 5

JavaScriptIII - Writing a lot of code without running....

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online