We took our first look at the Document Object Model (DOM).
We looked at how to do rollovers. I showed students the coins toss game working and asked them to work in pairs and speculate what the code might look like.
Next up students will be expected to extend the coin game and turn it into a slot machine.
Slides:
JS02s.pdf
Examples:
Rollover
Coin Toss Game
No comments:
Post a Comment