Demonstration of write/writeln functions

Example output

The JavaScript code:

Note: The bordersOn class is set to turn on borders for td elements.