Lesson 7 Challenge 3
by nathanesa
JavaScript
// First method - no new knowledge needed.
document.write('Beginning countdown<br>');
for (i = 0; i < 10; i ++) {
document.write(10 - i);
document.write('<br>');
}
document.write('Blast off!<br>')
document.write('<br>')
// Second method - uses for loop in a new way.
document.write('Beginning countdown<br>');
for (i = 10; i > 0; i --) {
document.write(i);
document.write('<br>');
}
document.write('Blast off!<br>')