Remember the term that browser support javascript - which we call browser runtime.
For an example we can open a browser console and can execute javascript code in it.
What if we want to run same javascript out of Browser?
That is when #Node.js comes in.
Node.js is javascript runtime enviornment out of browser.
But why we need it out of browser?
Your computer has lots of applications and it handles it very smoothly while browser it self is an application so instead of running javascript into browser we can run it directly in system and can take all benefits of system memory and performance in addition we get access to filesystem and database as well!
Now you know, what exectly #Node.js is for.
Top comments (0)