Javascript - Get position of the element of the array
<p>For instance, a variable named arrayElements of array type contains [1,2,3,4].</p>

<p>How do i get the position of which that has the value "3" in the array variable besides using loop?</p>

<p>thanks.</p>
