let myKey = 'variableKey'; let obj = { key1: 'One', key2: 'Two', [myKey]: 'Three' /* 棒呆! */ }; 给变量键加上一层 [],程序员们就可以在一条对象字面量声明里完成全部事情. let ages = [12, 19, 6, 4]; let firstAdult = ages.find(age => age >= 18); let firstAdultIndex = ages.findIndex(age =&…