+ 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
7 Respostas
+ 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
+ 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)
+ 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 😂
+ 3
For express routing methods, .get
Callback function should be run with a response method, eg. (req,res) => { res.send('connected'); }
+ 3
Oh I see, thanks
+ 2
🔫 Rick Grimes Useless, indeed. 😑🤣
0
Oh, my bad 😅
but res.send() doesn't work too 🧐