flashing heart blocks quiz

Learn how to create a blinking image with a variable.

Name

Directions

Use this activity document to guide your work in the flashing heart activity.

Answer the questions while completing the activity. Pay attention to the dialogues!

1. Describe what pause does?

2. Write the code that leaves an image on the screen for 1 second (1000 milliseconds)

3. Write the code that leaves an image on the screen for 1.5 seconds (1500 milliseconds)