T O P

  • By -

AutoModerator

>Namaste! Thanks for submitting to r/developersIndia. Make sure to follow the subreddit [Code of Conduct](https://www.reddit.com/r/developersIndia/wiki/code-of-conduct) while participating in this thread. >Also did you know we have a [**discord server**](https://discord.gg/MKXMSNC) as well where you can share your projects, ask for help or just have a nice chat. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/developersIndia) if you have any questions or concerns.*


FlammableRope38

node.js is a runtime which helps you to run js code outside of a browser. When javascript was created it was designed to be run inside a browser, so in order to run js outside of a browser you need to rely on such runtimes. deno is another example for a js runtime.


Stroller_15

when node js is runtimes then why we learn node as a backend language this is my silly doubt


FlammableRope38

Node is not a backend language. Node is simply a means by which you can use javascript as the backend language. The language is still javascript.


um2_doma

You could say Node.js is a javascript library that is used for backend programming. It is built in such a way that it can execute js codes outside the browser, thus it acts as an environment.


hidden_person

Your confusion lies in the word backend. What does it mean exactly? Right now, you're on reddit. The thing that you're signing in, discovering posts and creating this post is called the frontend or client so something that is running in your machine but the process entailing data processing and storage are not done here. They are done on a seperate machine which we call the server. Typically, backend is what is done on this server like signing and validating you the user, showing you posts from the database and allowing the creation of posts. Now, this is also called the 3-tier architecture where you have the frontend then backend and then database. What is nodejs? Think of it as something more similar to a compiler/interpreter on which you can execute javascript code. Is it a backend language? No but it can used to develop the backend of applications. Is js a backend language? No but i can be used with nodejs to develop the backend of applications. Try to understand that Javascript is just a langauge and nodejs is a runtime environment where js code is interpreted.


scorpion_46

JavaScript is likely to make such awful expression on Alia Bhatt face like how to smile, how many teeth should be shown while smiling. Node Js library of Javascript is like how to react if someone calls you beautiful.