Create property names dynamically:
let prop = "status"
let obj = {
[prop]: "active",
["key" + 1]: "value1"
}
console.log(obj) // { status: "active", key1: "value1" }
Square brackets around the key evaluate the expression. Use this for dynamic keys from variables or computations.