It's often possible to surround code in brackets, which can be useful when creating comma expressions.
Why does the code below have syntax errors when surrounding certain code with brackets?
let o = {a: 2, b: 3}
console.log('hello') // works
(console.log('hello')) // works
{console.log('hello')} // works
({console.log('hello')}) // colon or comma expected
for(const k in o) console.log(k) // works
(for(const k in o) console.log(k)) // error: newline or semicolon expected
for(const k in o) {console.log(k)} // works
(for(const k in o) {console.log(k)}) // error: statement expected