These are JavaScript programs I wrote for computer science course in Grade 11.

They are posted here for your enjoyment. I would appreciate if you wouldn't simply take the code; rather, acknowledge the original author (me) with a brief comment in your code like:

Parts of code written by Derek Tsang

Web developers may use these programs, or parts thereof, in their own programs, so long as I am acknowledged.

The code presented here is commented and should obey standard programming conventions. The code also should work directly in your web browser, unless otherwise noted. These programs are presented here for educational purposes, and I do not actively maintain them.