Node.js – Significance and Role in Web Development

javascriptnode.js

I have read that Node.js is a server-side javascript enviroment. This has put few thought and tinkers in my mind.

Can we develop a complete data-drivent web application utilizing just JavaScript (along with node.js), HTML5 and CSS? Do we still need to use some server-side scripting language (e.g. C#, PHP)?

In case we still need to use other scripting languages, what is node.js worth for, or useful?

NOTE: Pardon with my knowledge about node.js.

Best Answer

Can we develop a complete data-drivent web application utilizing just the javascript(alongwith node.js) , HTML5 and CSS.

Yes, using node.js can mean that the only programming language you use is javascript, throughout the application stack.

In case, we still need to use other scripting language, then what node.js is worth for or useful ?

No need for another scripting language.

Even if you do use other scripting languages node is still useful - its non-blocking nature and fast response may make it ideal for some parts of your application.


Things to keep in mind about node.js:

  • The programming model uses callbacks. A lot. This takes time to get used to.
  • You can pass JSON between client and server and they will both be able to consume it natively.
  • node has no blocking (achieved by using all those callbacks), so responds very fast.
Related Topic