Why is this the best node.js explanation for a newbie
It is plain and right to the point, if you are a seasoned programmer this may seem silly but honestly, everything out there was too in-depth for me to understand. Knowing about Node.js is important for a full stack developer, but being confused and not wanting to learn it is another challenge. Above I spoke of how node.js uses your code and how you can expect it to work once you start learning more about it. There is nothing like documentation so I recommend rolling over to NODE.JS after this and checking out the documentation.
What is node.js:
In the past, you would create a local HTML file on your computer then add a call to a relative JS file. From there you can open it up in a browser and play with it in the console. But that was the environment and in my mind made it to where being limited to just that made me feel that other than some functionality on a website that was all to be had. Then Node.js comes along and as mentioned before that RunTime Environment takes what I described out of the equation and opens to the doors for so many possibilities.
- First you need to have node installed on your computer
- Open your terminal / command line and type node -v
- Now you will see the version you have on your computer
- Create a folder and put a normal js file in there stuff.js
- Navigate to that folder in the terminal and type node stuff.js
BOOM you will see your code executed without having to be on a browser.