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 trialNick Evershed
6,429 PointsElse if and IF
I never really understand why we have to use Else If statements at all
2 Answers
Robbie Thomas
31,093 PointsTreehouse has a practice edition to if/else in JavaScript.
Perhaps you can do the practice until you can get it down. I just did the PHP if/else practice and did badly at it, I'm going to have to give it mulitple tries to get that down.
Glenré Charl Labuschagné
23,204 PointsIn short the else if () adds more options to your logic vs just if () else.