JSFiddle - React, Tailwind, and code Playground

by Laurel Bruggeman

JavaScript

let getFirst = [1];
getFirst[0] = 2;

let accessor = [1];
[accessor] = 2;

console.log(getFirst)
console.log(accessor)