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