DEV Community

ckmonish2000
ckmonish2000

Posted on

1 1

Node For Dummies

There are a million ways you can learn Node JS but the one I Prefer is hand made notes that can assist me in all my future projects.

If your something like me you would also like sicknotes and cheat sheets for your future references.

So without further ado let's get started.

WTF Is Node.js

Once upon a time JavaScript was a language that could not do anything more than manipulate DOM elements, In other words JS was confined only to your browser.

But today we can do just about anything with JS from building websites to training AI models and that's all thanks to Node.

So how exactly did node revolutionize JS ???

Basically when you write a line of code you need what's called a compiler that translates human readable code into lower level format that your computer can understand.

js engine

So browsers are shipped with something called a JS engine that acts as a compiler,

Like shown in the image above the code from your app will go through the engine to perform the required operations but there are a lot of limitations to the JS engine shipped with browsers like we can not interact with the OS or create files with JS.

To over come these limitation Ryan Dahl in 2009 introduce the world to Node.JS

chrome V8 engine

which is basically uses chromes JS engine called V8 and wraps it with Libuv a library built with C which gives JS the ability to perform a lot of native operations we will be visiting over the course of this series so stay tuned for the next blog post.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay