How to access object properties with concateneated strings?

To start I have a few different objects made from a constructor named Pad.
For example I have objects named: padQ, padW ,padE …ect
Each one of these objects I have the property (.keyID).
For example when I call padA.keyID I get a number, when I call padB.keyID I get a different number.
In the example code below the first property number is the keyID property. Ex. padQ.keyID = 113

var padQ = new Pad(113, 'Q', 'Beat Box Kick');
var padW = new Pad(119, 'W', 'Funky Bass');

I am trying to make a loop which concatenates strings to output the keyID property for each pad.

var keyArr = ['Q', 'W'];
for(let i = 0; i < keyArr.length; i++) {
var str ='pad'+keyArr[i]+'.keyID';
console.log(str);
};

The above code outputs the strings ‘padQ.keyID’ and ‘padW.keyID’ but I want the value stored in these properties instead.
How do I do this?

You can’t really dynamically build variable names.

Put all of them in another object when you’re building them up in the first place, like: pads = { padQ: { keyId: ...

Then you can just access values via pads[key].keyId or whatever

Thanks! Thats much easier.