How to Use Array indexOf in JavaScript: A Simple Example