I want to write a HTMl page using javascript, in which an Array will store some values. There will be a text box on the screen.
User need to enter a value in the text box. If that values is there in the array. Then it should display "Value is there in the array" or else not found.
<html>
<head>
<script>
var cars = ["abc", "def", "ghi","jkl"];
</script>
</head>
<body>
Enter a value <input type="text"><br>
</body>
</html>