I wanted to achieve a value in the array is present in the array variable or not.

```
var a = [1, 2, 3];
if (a === 1) {
    alert("green");
}

```

So my goal is to check in the variable `a` holds the value 1 or not.