I was just creating an random array but i fell into an issue when i choose "name" as identifier.
I am writing this code:
var name = ["test", 10, true];
console.log(name);
When i check console then instead of getting an array there it returns a string like "test,10,true"
If i change identifier from "name"
to "x"
or anything else then it works fine.
Can anyone please let me know what is going on here?