javascript: get end key value?
<p>how do i get the end key value for a javascript array?</p>

<p>i want to compare it with another value.</p>

<p>EDIT: and how do you declare a value directly with a declaration of an array. i have to use 2 lines for it.</p>

<p>var arrayname = new Array();
arrayname[] = 'value';</p>

<p>could one do that in one line?</p>
