How do I stop my nodejs repl from falling asleep?
Will_builder8 (1)

I tried using Uptime robot, but it still falls asleep after a while! How do I fix this?

You are viewing a single comment. View All
vedprad1 (725)

It doesn't seem to be down. There is probably a problem in your code, then.
While this may not solve the problem, I do notice that you are missing a lot of semicolons. You should fix that.

Will_builder8 (1)

@vedprad1 i dont nee dto put semicolons in nodejs i thought

Zavexeon (305)

@Will_builder8 Semicolons are still necessary in Node. Node is just plain old Javascript with built-in libraries. The syntax is the same.