Lecture16_JavaScript5

# Lecture16_JavaScript5 - Computer Applications for Business...

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

Computer Applications for Business Spring 2008 Instructor: Gayatree Ganu

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

View Full Document
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)
JavaScript: Lecture 5 Loops Infinite Loops Nested Loops Interchangeability in loops Two ways to end a loop More loop Examples

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

View Full Document
Infinite loops An infinite while loop while (true) { document.write (“Hello<br>”); }
Infinite loops An infinite DO loop var i=1; do { document.write("Lather"); document.write("Rinse"); document.write("Repeat"); } while (i<=2);

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

View Full Document
Infinite loops An infinite for loop: for (i=0;i<10;i--) { document.write ("This is line " + i); }
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

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

View Full Document
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
Ask a homework question - tutors are online