Demonstration of write/writeln functions and for loop
Example output
There is no output because JavaScript is not operating.
The JavaScript code
for (var i=1; i<=10; i++) { document.writeln('
' + i + '
'); }