for example:
object = {
name: "Mike",
age: 15
}
object.age // returns 15 right?
But I want to pass the 'age' key as a variable name:
object = {
name: "Mike",
age: 15
}
const age = 10.toString()
How do I get the result of something like this:
object.`${age}`