In the following statement:
let x=[1,2,3]; console.log(x.0); // should be console.log(x[0])
This evaluates to an error:
SyntaxError: missing ) after argument list
I have two questions about this:
arr[idx]
arr.idx