I noticed somewhere that we could define an object using the following syntax:
const a = {
["test"]: 1,
["tmp"]: 2,
};
Is it the same as the following one?
const b = {
"test": 1,
"tmp": 2,
};
If so, what's the []
for in the first code block?