How do I get values from an object using dot notation when I have a variable that changes.
console.log(`${getData}.BUTTON_${item.UUID}`);
// outputs: [object Object].BUTTON_1
In the object is a value for BUTTON_1. My item.UUID is a number that will change to a different button number. I need to be able to get the value for the button number
what works
console.log(getData.BUTTON_0);
My button number will be between 0 and 4 example getData.BUTTON_0, getData.BUTTON_1 ...
currently I need the button number to be a variable however the following does not work
console.log(`${getData}.BUTTON_${item.UUID}`);