Create a score tracker where the user can change the score by pressing a button
How to initialize a variable
How to change a variable with user input (buttons)
How to use conditionals to check the value of a variable
Incrementing is adding to a value. You will increment the value of a property when creating your counter app.
Decrementing is subtracting from a value. You will decrement when creating the countdown timer app.
Initialize a Score variable with the value of 0
Score Label which shows Score
Create a Button which increases the score by 1
The Score label should show the change
Create a Button which decreases the score by 1
The Score label should show the change
Add a conditional with a comparison operator (under 'Logic') to check if the score is equal
Hint: You don't need an "else" to complete this challenge
Add a conditional with a comparison operator (under "Logic") to check if the score is great than five
Add a conditional with a comparison operator (under "Logic") to check if the score is equal to 10
Add a sound component
Upload a sound of your choice: