var i = 0; var magicnumber = 7; while (i < 10) { if (i === magicnumber) { document.writeln(i + ' is the magic number!') } else { document.writeln(i + ' is not the magic number.'); } i = i + 1; } //to see the results of this program, go to http://teals-test.neocities.org/3-3_lab/lab.html