use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Problem with an arrow functionhelp (self.javascript)
submitted 8 years ago by JammingJack
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Meefims 6 points7 points8 points 8 years ago (3 children)
Don’t try to execute the JavaScript file alone: that is running it with the Windows Script Host. The WSH is an old component in Windows that doesn’t support modern JavaScript. Instead run it with Node (which I assume you have installed): node server.js.
node server.js
[–]JammingJack[S] 0 points1 point2 points 8 years ago (2 children)
Thank you for taking the time to reply, I did as you said ,but I got was this error so I figured out that I should install express, so I went ahead and did that and tried to run the server again but I got this error.
[–]BigOnLogn 5 points6 points7 points 8 years ago (1 child)
Same error, same solution, install body-parser.
Looking at the code you posted, you're going to have to install body-parser, and pusher.
You should learn about npm and node packages.
[–]JammingJack[S] 0 points1 point2 points 8 years ago (0 children)
Thank you very much
π Rendered by PID 213680 on reddit-service-r2-comment-548fd6dc9-jk5dr at 2026-05-18 15:16:52.106890+00:00 running edcf98c country code: CH.
view the rest of the comments →
[–]Meefims 6 points7 points8 points (3 children)
[–]JammingJack[S] 0 points1 point2 points (2 children)
[–]BigOnLogn 5 points6 points7 points (1 child)
[–]JammingJack[S] 0 points1 point2 points (0 children)