In ver 3.4.7, for Node.js code, what is the (right way to) use (of) the "RUN" button? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

In ver 3.4.7, for Node.js code, what is the (right way to) use (of) the "RUN" button?

I mean, it even shows error for the most simplest Express.js boilerplate.... https://code.sololearn.com/cpZ9mpJRofuS/?ref=app

7th Aug 2020, 2:58 PM
Gordon
Gordon - avatar
7 Answers
+ 3
You mean work from code playground? We're having problem to install npm packages on playground node, still looking for solution, so far there is still no way to install any packages on playground, i suspect it's due to Sololearn set execution timeout too short. https://www.sololearn.com/discuss/2432540/?ref=app
8th Aug 2020, 6:24 AM
Calviีฒ
Calviีฒ - avatar
+ 5
Gordon, I tried using simple http server(http is core library comes with node) and it still doesn't work. ๐Ÿ˜ Devs added nodejs but it is worthless (for now at least)
9th Aug 2020, 6:36 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 4
๐Ÿ”ซ Rick Grimes Ya....Can't run http server like usual Node.js server ๐Ÿคทโ€โ™‚๏ธ But I am told that the console works better than web code. So we can perceive it as a Dev Tool ๐Ÿ˜‚
9th Aug 2020, 7:00 AM
Gordon
Gordon - avatar
+ 3
For express routing methods, .get Callback function should be run with a response method, eg. (req,res) => { res.send('connected'); }
8th Aug 2020, 5:14 AM
Calviีฒ
Calviีฒ - avatar
+ 3
Oh I see, thanks
8th Aug 2020, 6:38 AM
Gordon
Gordon - avatar
+ 2
๐Ÿ”ซ Rick Grimes Useless, indeed. ๐Ÿ˜‘๐Ÿคฃ
9th Aug 2020, 7:39 AM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
0
Oh, my bad ๐Ÿ˜… but res.send() doesn't work too ๐Ÿง
8th Aug 2020, 6:11 AM
Gordon
Gordon - avatar