Essential Question: How can I create a program that uses a timed loop?
Mastery Objectives:
SWBAT create a program that uses a timed-loop.
SWBAT create a conditional statement in JavaScript.
SWBAT use event listeners in JavaScript.
Do Now: Find an image of an emoji and save it to your computer.
Directions: Recreate the program whack-a-mole using an emoji. Your program should have a timed loop that moves the emoji around the screen. Do a search for an image called "whack-an-emoji" to find the background image.
Ticket-to-Leave: In the comments below, describe how different javascript events, such as mouseover, mousepress, etc., could change the program.