Check the behavior of HTMLDocument.write() / writeln().
You should see exactly 2 'PASS' lines below:
You should see exactly 2 'null' lines below:
You should see exactly 2 'undefined' lines below: