[Solved] inserting a variable into the drilldown of an object


A coworker figured it out for me, the issue was it was looking for choices inside of currentPinyin, not choices inside of the text for current pinyin.

So the correct output was this $.wordDatabase.words[currentPinyin].choices;

solved inserting a variable into the drilldown of an object