Is it not enabled by default?? let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; console.log(arr[-1]); // we get undefined onto the console So why does on accessing arr[-1] return undefined? JavaScript does not support negative indexing by out of the bo...
Markdown supported · ⌘↵ to post
No responses yet.