Without the semicolon, the code is getting interpreted as this:
console.log("Running")(0, user["hello"])()
Since .log() doesn't return anything, the type error happens because it looks like you are trying to call a function that .log() returns.