This is a test for ASI certification.
Your job is to add all the semi-colons where ASI would put them.
That means that no ASI should occur after you're done.
These are the three rules to Automatic Semi-colon Insertion (ASI):
There are a few cases where no ASI is applied, even when the rules above would apply:
There are also a few hidden cases, which you'll have to discover on your own ;)
You can only insert semi-colons.
The script was hacked together quickly so del and backspace screw your cursor position (just don't make mistakes! ;)
The cursor position is also the reason this test fails in IE. It has a very annoyingly complex way of getting the cursor position.
Press the next button when you think you've finished.
Results and explanation are presented at the end. Good luck!
The test is supposed to prove the point that you can't predict ASI well enough to rely on it.