Lecture 9 - Computer Applications for Business CS170 Fall...

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

View Full Document Right Arrow Icon
CS170 Computer Applications for Business Fall 2008 Instructor: Kristian Stout Lecture 9 Introduction to Javascript Readings: Chapter 18
Background image of page 1

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

View Full DocumentRight Arrow Icon
Topics Debugging with Firefox Comments Formatting output using HTML Expressions and Operators - Arithmetic Operators - Relational Operators - Logical Operators Operator Overloading
Background image of page 2
Debugging with Firefox Indicates Line Number of Error tries to give you an idea of what it thinks is wrong
Background image of page 3

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

View Full DocumentRight Arrow Icon
Comments in JS Why do we need comments? Single Line comment: // your comment Multi-line Comment: /* your comment */
Background image of page 4
Background image of page 5

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

View Full DocumentRight Arrow Icon
Formatting output with HTML All HTML formatting tags can be used to format the output by a document.write command. Placement of tags: Inside the quotation marks of the document.write(“ . ... ”) You cannot format output in functions like alert, prompt and confirm() - sort of : you CAN use \n \t for inserting whitespace
Background image of page 6
Background image of page 7

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

View Full DocumentRight Arrow Icon
Background image of page 8
Expressions Expressions are Algebra-like “formulas” they describe the computation that you need
Background image of page 9

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

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 21

Lecture 9 - Computer Applications for Business CS170 Fall...

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

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