Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

array[-1] not working

var array = [1, 2, 3];

array[-1] = 42;

console.log(array);
console.log(array[-1]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #working
ADD COMMENT
Topic
Name
7+9 =