1👍
✅
When attempting to access data from an object with a variable, you can use bracket notation instead of dot notation.
So for you, you can do
const n = this.prac
const x = this.oa
console.log(x)
console.log(n[0][x])
Which should result in the value you’re looking for.
I found this wonderful answer here How can I access and process nested objects, arrays or JSON? that gives more details and background on why this works.
Source:stackexchange.com