First time used 'if' / 'else if'

The first time around before watching the solution I remembered if statements from when I studied code like 10 years ago so my first round was like this just to make sure it worked. But, Ben’s solution was a lot simpler. The responses were were just to make sure the console was recognizing the correct inputs. This was a hard challenge so I kind of went roundabout to figure it out. (Yes I know that if/else if statements had yet to be introduced)

Privacy & Terms