2 ms·
That's due to a shorthand added in ES2015 that lets you construct an object where keys are equal to the name of the variable. So that's short for console.l
by jayrhynas 8y ago
That's due to a shorthand added in ES2015 that lets you construct an object where keys are equal to the name of the variable. So that's short for
console.log({ a: a, b: b })
and then the console just prints out the new object.