Node.js - a different JavaScript
Harshal Yeole
Sr. Software Engineer @ Tesla | ASU Alum | 2x AWS Certified | Expert in Angular, React, Node, AWS
JavaScript is one of the core technologies of World Wide Web. Almost every web browser support JavaScript without any plugins. JavaScript is a dynamic programming language, whose implementations make dynamic pages with the help of client-side scripts which basically interact with the user.
But I'm sure very few have heard that JS can be used as server side.
Well, in 2009 Ryan Dahl wrote a new javascript which could be used on the server side as well - Node.js. Its development and maintenance was led by Dahl and later sponsored by Joyent.
Node.js is written in C, C++ and yes, JavaScript!
It is an open-source, cross-platform JavaScript run-time environment for executing JavaScript code server-side.
Not to forget, Node.js is built on Chrome's V8 JavaScript engine, which makes it faster.
Few of the features of Node.js
- Event-driven
- Non-blocking I/O
- Single threaded
- Lightweight
- Efficient
Node.js has set the new era in web development.
There are a lot of new stacks coming up with JS as front-end, like AngularJS, ReactJS, etc.
Having JavaScript both the ends (Front-end & Back-end) can increase the efficiency of the developers to understand the code better and build the robust Web Apps.
There are a lot of new frameworks with special features are coming up which are based on Node.js like:
- Mean.js (Angular as Front-end)
- Keystone.js (CMS)
- Express.js (Web Application Framework)
- Mern.js (React as Front-end)
- Socket.io (Real-time bidirectional event-based communication)
- Meteor.js (Reactive, real-time UIs & Web Apps)
- Hapi.js (Rapidly building and testing APIs)
- Koa.js (A callback-less, lightweight middleware framework)
- Sails.js (MVC microframework that’s great for data-heavy enterprise-grade apps)
and the list goes on.
As you can see the Node.js is compatible with so many JavaScripts available which gives it the immense scope to grow and build itself.
One more important thing not to miss is, NPM (Node Package Manager) provides us with more than 99999 ready to use packages. All you need to do is just install it and include in your code and use the functionality which is already build to give expected output. Perhaps if you have created a new functionality you can upload the same on the NPM for the sake of our fellow developers.
Node.js provides us with inbuilt debug options like debug and inspector.
Hope you liked the content so far. I'll be back with some more stuff next time.
Stay Tuned! Happy Coding!
Experienced Full Stack developer || .Net || Angular || MSSQL
6 年Nice one and Very helpful. Keep writing.
Director of Partner Alliance | Salesforce Startup Community
7 年Superb article..looking forward to know more about future of AngularJS.