What is node.js?
from cheese_greater@lemmy.world to nostupidquestions@lemmy.ca on 05 May 02:06
https://lemmy.world/post/46445158
from cheese_greater@lemmy.world to nostupidquestions@lemmy.ca on 05 May 02:06
https://lemmy.world/post/46445158
What can be done of it?
#nostupidquestions
threaded - newest
So JavaScript was made to run in a browser. You click a button or whatnot and some code runs. But people liked it so much that that they made an external runtime outside of the browser, so you can run code just like any other language, like running a Python script. Nodejs also has a bunch of server specific functions such as file reading and writing that JavaScript running in the browser would not have access to. If you’re asking what can be done with it, you can use it to run a JavaScript script one time, or you can use it to run a web server.
[Citation needed]
🙋♂️
At least one person did, I suppose. I don’t hate working with Typescript, there’s some issues with it but overall it’s a decent language to work in. JavaScript by itself is pretty miserable though.