Ask coding questions

← Back to all posts
Help with code
Bottian

whenever I run the code it pops up with an unexpected end of input on the final line. any help would be appreciated as I already tried to fix this in several ways. thanks

Voters
Bottian
Comments
hotnewtop
Coder100

here is the error
you forgot the }); for the client.on message.
Here is the correct code for line 45-50

Bottian

umm I still get the syntax error on line 70
@Coder100

Coder100

@Bottian line 21-27

you also forgot another }).

Next time maybe try formatting your code better so these errors won't happen