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