View Single Post
Old 03-20-2013, 04:45 AM   PM User | #2
jmrker
Senior Coder

 
jmrker's Avatar
 
Join Date: Aug 2006
Location: FL
Posts: 2,765
Thanks: 29
Thanked 453 Times in 447 Posts
jmrker will become famous soon enough
Lightbulb

If you know the limits of the loop, why not just use them.
Code:
for (var day = 1; day <= 4; day++) {
// discount calculations and display

}
jmrker is offline   Reply With Quote
Users who have thanked jmrker for this post:
JavaLearner22 (03-20-2013)