The JavaScript code document.writeln('Odd integers from 1 to 100:'); var sum = 0; var i = 1; while (i <= 100) { document.write(' ' + i); sum += i; i += 2; } document.writeln(''); document.writeln('The sum is: ' + sum + '');