It sounds silly, but I'm struggling with this.
I'm working with a basic JS object:
var objSyntax = [ {"a": "1"},
{"b": "2" },
{"c": "3"} ];
My goal is to retrieve the value associated with key 'a' when using theid
.
Here's the code I attempted, but it didn't work as expected:
objSyntax[theid];
What am I missing here?