Sorry for this question, I am a beginner.
Don’t I know about this?
function test() {
const idObj = [{"constructor":"constructor", "home":"home"}]
const idArr = ["constructor", "home"]
console.log("results: ", idObj["constructor"], idArr["constructor"])
}
I cant use the “constructor” string as object or array value. Output from the code above is:
results: function Array() { [native code] } function Array() { [native code] }
Can someone teach me about this?
Thanks 🙂