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.