If/else if?


#1


https://www.codecademy.com/courses/jquery-ext/projects/jquery-prj_pocketbook


Maybe it's a stupid question, but I was just wondering why we don't have to use else if-statements in this exercise. I thought you always had to do that when there was more than one if. But here it seems enough to only use if each time. What's the logic behind that?


https://gist.github.com/4821f68ff0c4ac5723dcb467cbda6c59


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.