If I run what you posted locally, there's this error message:
$ node hello.js
SyntaxError: Unexpected token }
That doesn't even exist in your code, it got modified a bit by the interpreter before it ran it. But the line number is right.
Having read what it (the interpreter) has read so far, end-of-file is not something that's allowed to come at that point. Something else has to come first. That's what your interpreter is saying with end of input. The one I'm running it gets a different issue because it changed the code prior to running it, but the problem is still the same with your original code. You'll need to compare what you did there with some reference for the thing you are doing - you haven't quite got the syntax right for that loop, so how is the syntax for that supposed to look like?