title: How to search for a value in an Array of JavaScript?
body: <p>I am learning JavaScript and i came across this problem. I want to catch an input value using <code>document.formName.elementName.value</code>and compare that value with an instance of an Array object.If the value exists it will throw an alert!.</p>