I don't know if its even possible but I'm wondering if you can add a const as an object property for an object.
So for example something like this:
const x = "age";
let array = {
name : "Tom",
x: "15";
}
So, in my case adding a new property to the object called 'age'. Where x
is the variable that was already defined.
This is probs a dumb question but thanks in advance :)