ArrayIndex out of bound in JavaScript
<p>I have an array <code>var john = ['asas','gggg','ggg']</code></p>

<p>Now if i pass the value 3, it throws me an error. how can i display a message or alert saying that there is no value for the index passed. </p>
