Lecture 11

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

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

View Full Document Right Arrow Icon
CS170 Computer Applications for Business Fall 2008 Instructor: Kristian Stout Lecture 11 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 More Conditional Logic Nesting If Statements Complex if expressions
Background image of page 2
If-Else Statements Allows execution of a set of statements if a condition is true and another set of statements if condition is false if (<Boolean expression>) { <then-statement>; } else { <else-statement>; } The Boolean expression is evaluated first - If the outcome is true, the then-statement is executed and the else-statement is skipped - If the outcome is false, the then-statement is skipped and the else-statement is executed
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

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

View Full DocumentRight Arrow Icon
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
Background image of page 9

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

View Full DocumentRight Arrow Icon
Background image of page 10
The “if - else if - else” statement provides multiple branches of conditional path of execution The value of the variable can satisfy more than one expression in the compound statement.
Background image of page 11

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

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

This note was uploaded on 02/07/2011 for the course COMP 178 taught by Professor Stout during the Fall '08 term at Rutgers.

Page1 / 29

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

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

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