Lecture16_JavaScript5

Lecture16_JavaScript5 - Computer Applications for Business...

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

View Full Document Right Arrow Icon
Computer Applications for Business Spring 2008 Instructor: Gayatree Ganu
Background image of page 1

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

View Full DocumentRight Arrow Icon
Mid-semester evaluation (unofficial) In teaching this course, what would you have done differently? (Suggestions to the instructor) Comments on exam, assignments Comments on textbooks and slides Comments on TA (Please mention TA’s name)
Background image of page 2
JavaScript: Lecture 5 Loops Infinite Loops Nested Loops Interchangeability in loops Two ways to end a loop More loop Examples
Background image of page 3

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

View Full DocumentRight Arrow Icon
Infinite loops An infinite while loop while (true) { document.write (“Hello<br>”); }
Background image of page 4
Infinite loops An infinite DO loop var i=1; do { document.write("Lather"); document.write("Rinse"); document.write("Repeat"); } while (i<=2);
Background image of page 5

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

View Full DocumentRight Arrow Icon
Infinite loops An infinite for loop: for (i=0;i<10;i--) { document.write ("This is line " + i); }
Background image of page 6
Nested Loops A loop within a loop Steps: The outside loop is initialized and tested (starts) Then the inner loop starts, and iterates completely through all of its cycles Then the outside loop continues
Background image of page 7

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

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

This note was uploaded on 02/08/2011 for the course ECONOMICS 101 taught by Professor June during the Spring '08 term at Rutgers.

Page1 / 18

Lecture16_JavaScript5 - Computer Applications for Business...

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

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