Lect7JavaScript - Announcements Make sure you have started...

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

View Full Document Right Arrow Icon
Announcements Make sure you have started working on the project No posting of code in the forum Check class announcements daily 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 Reserved words words you cannot use as identifiers Some of them are: break do If catch Reserved Words
Background image of page 2
3 JavaScript ignores spaces, tabs, and newlines between tokens Use spaces to create nicely indented code The rules are usually one tab for indentation or three spaces. You need to satisfy this requirement in programming assignments A semicolon is generally used to mark the end of a statement and is optional when a statement appears on a separate line. For example, the following two set of statements are equivalent x = 1; y = 2; x = 1 y = 2 In this course we will always use a semicolon to mark the end of a statement Spaces, Semicolons, and Comments
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 Comments Comments in JavaScript Used to provide information to the programmer Used to identify sections in your code Ignored by the JavaScript interpreter Two types of comments Inline comment
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

Lect7JavaScript - Announcements Make sure you have started...

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