var key = 'age'
test = {}
test[key] = 18
console.log(test[key])
var key = 'age'
test = {
[key]:18
}
console.log(test[key])
var key = 'age'
test = {}
test[key] = 18
console.log(test[key])
var key = 'age'
test = {
[key]:18
}
console.log(test[key])