In JavaScript one can access array values using this syntax...
const arr = ["one", "two", "three"];
console.log(arr[0]); // "one"
...or using a defined function that returns a number to achieve the same result:
const arr = ["one", "two", "three"];
const fn = () => 0;
console.log(arr[fn()]); // "one"
I might be brain-afk, but I simply do not understand why the exact same thing does not work when using an anonymous function expression? Don't I clearly end up with 0 as an array index position assessor?
const arr = ["one", "two", "three"];
console.log(arr[() => 0]); // undefined