title: get the last number of index in array [JavaScript]
body: <p>How can I get the last index number in an array?</p>
  
  <pre><code>var narr= new Array("test1","test2");
  </code></pre>
  
  <p>I want to print <code>test2</code> index number.</p>