Use .indexOf instead of for loop.
Use .indexOf instead of for loop.