Javascript name Object in Array with a variable

Viewed 25
const someObjName = {
"ExampleName": []
}

Is it possible to change the javascript object "ExampleName" with a variable?

var jsObjectName = "otherName"

const someObjName = {
 jsObjectName": []
}
0 Answers
Related