Answers for "array[-1] not working"

0

array[-1] not working

var array = [1, 2, 3];

array[-1] = 42;

console.log(array);
console.log(array[-1]);
Posted by: Guest on September-14-2021

Code answers related to "array[-1] not working"

Code answers related to "Javascript"

Browse Popular Code Answers by Language