Question #100

Author: admin
tags: JavaScript  
const arr = [];
arr[-1] = 'text';
console.log(arr[-1]);
What will the console output be?
text
-1
undefined
null
Nothing. There will be an error.
In JavaScript any array is an object. You can add any property to an object and get this property value using bracket notation.
Rate the difficulty of the question:
easyhard