It's a plain block - like the block of a for loop, only without the loop.
for (let i = 0; i < 1; i++) {
"a"
}
The block also "evaluates" to "a", the final expression in it, which is why it gets logged by the console.
(This sort of statement completion value of a block, as opposed to an expression, is pretty much never seen or used in JavaScript - except when typing stuff into the console like this.)
A block
{
// some code
// NOT containing object literal syntax
}
is a bit like a for
loop with a single iteration, and a bit like an IIFE - a segment of code with its own scope. But it's weird and confusing - best not to use plain blocks in real code.