Four short programs that surprise most beginners. Guess what each one prints, then step through it line by line and watch which names point to which objects.
The interactive demo needs JavaScript.