Dynamic property name concatenation
问题 I'm looking for an easy way to assign to a variable depending on the value of another variable. device.slot2_clipList[clipNumber] = singleClipDetails; what I'm trying to do is: replace the "2" with another variable, so that i can run the same operation while just changing the var slotNumber, and write to the corresponding variable. i tried device.slot + device.slotNumber + _clipList[clipNumber] but (obviously?), this doesn't work. How can this be done? (Maybe I named the Question incorrectly,