Unit 4 Lesson 9 Level 4


  • Change the program to make it display the word " clicks" after the count as you play the game. For example, it should say "5 clicks" or "10 clicks" instead of just 5 or 10

How do you add “clicks” to the code without it adding “click” over and over again?

I changed it in “design”, but I know I’m missing how to add it to the code.

The intent is to have it set the text to include the word clicks instead of just the number…so you will want to modify the setText block in the updateScreen function.
This can be done with either with a variable that is set to be = count + “clicks”; (and then using that variable as your text value) or by directly setting the text parameter of the setText code block to be ’ count + “clicks” ’