Need help finding error in my code

[https://www.codecademy.com/workspaces/630926747b93e12c7b979348]

Hi,
‘else’ shouldn’t have a condition attached to it.
It should just be for anything which doesn’t match a preceding ‘if’, or ‘else if’.
i.e

if (x >= 20){
do this if x is greater or equal to 20
} else if (x <= 10) {
do this if x is less than or equal to 10
} else {
this will run if neither of the other two are true (i.e. x is less than 20 but more than 10)
}

Hope that helps

2 Likes

Got it!
Thank you so much.

2 Likes