Welcome to the Treehouse Community
Looking to learn something new?
Could someone review my code?
I finished all tasks, but I would be happy if someone can review my code and give me feedback. For example, you can search "Jody" and will see two people. Also, I've added "Try again" button because prompt() blocks text output (check teacher notes). Thanks! Workspace: https://w.trhou.se/0ohq5vhhp5
It's nice, but what happens if there are two people with the same name? From what I can see in the code, you are relying on the fact that each student's name is unique, which is what I gather from the (found !== 1) condition.