Demonstration of write/writeln functions
The JavaScript code:
document.writeln('<table border="1">');
document.writeln(' <tr>');
document.writeln(' <th>Name</th>');
document.writeln(' <th>Fave Color</th>');
document.writeln(' </tr>');
document.writeln(' <tr>');
document.writeln(' <td>Bob</td>');
document.writeln(' <td>Blue</td>');
document.writeln(' </tr>');
document.writeln(' <tr>');
document.writeln(' <td>Sue</td>');
document.writeln(' <td>Red</td>');
document.writeln(' </tr>');
document.writeln('</table>');