Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAdam Arafat
1,066 Points**SOLVED** What's wrong with the code?
So the following link is a screenshot of my code, I was wondering why it shows me the 'if' response when I put in a value that isn't being blocked. What am I doing wrong here? It had worked earlier, I can't see any changes that I've made.
1 Answer
Steven Snary
17,540 PointsLooks like you have an extra ";" at the end of your second if expression - remove that and see if it fixes your problem. :-)
Adam Arafat
1,066 PointsAdam Arafat
1,066 PointsSteven Snary I can't seem to find it. Could you point out which line its in.
Seth Kroger
56,412 PointsSeth Kroger
56,412 PointsLine 27, the end of the if statement. The semi-colon there separates the if statement from the block, so the block will always run.