Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between jQuery and Node.js? [closed]

I have tried a few examples with Node.js, but still I have a confusion between jQuery and Node.js.

All I know at this point in time is that Node.js and jQuery perform two different roles. One facilitates server-side JavaScript, and the other provides an abstraction library for client-side JavaScript.

I have seen some other links also on Stack Overflow related to Node.js and jQuery but I didn't get what I wanted.

  • Node.js: Client-Side Templating v/s Server-Side Templating

  • Can I start with jQuery (or Node.js) with "NIL" knowledge of JavaScript?

What is the feature difference or what is it special that Node.js does which will make me think to go with it? What benefits will I get if I choose to go with Node.js? I know Node.js works on event-driven programming, not an object-oriented programming language, but what else are the other things I can do with Node.js which I can not do with jQuery or other frameworks?

I have a few question like:

  1. What can be done by Node.js which can not be done by jQuery?

  2. Is Node.js capable of consuming web services? If yes, then is it possible to do the same with jQuery? If not, then what is the reason for it?

  3. What are the features of Node.js? How it is different from jQuery?

  4. In which situation should I go with Node.js or jQuery?

  5. What are some special features of Node.js and jQuery? Benefits of using both?

like image 638
Sau Avatar asked Mar 16 '13 08:03

Sau


People also ask

What is difference between jQuery and node JS?

NodeJs is an open-source framework based on JavaScript v8 engine. AJAX is a web development technique for making asynchronous calls to the server. jQuery is a JavaScript library for designing and make some web development tasks easy. It makes it possible to run javascript outside of the browser.

Is jQuery used with NodeJS?

js: We can use jQuery in Node. js using the jquery module. Note: Use the 'jquery' module not the 'jQuery' module as the latter is deprecated.

What is the difference between NodeJS and Ajax?

In easy term, The difference between Node. js and Ajax is that, Ajax (short for Asynchronous JavaScript and XML) is a client side technology, often used for updating the contents of the page without refreshing it. While,Node. js is Server Side JavaScript, used for developing server software.

What is the difference between JavaScript and node JS?

JavaScript is a proper high-level programming language used to create web scripts whereas Node. js is a run time environment built on google's v8 engine. JavaScript is executed in the browser whereas using Node. js gives us the ability to execute JavaScript outside the browser.


1 Answers

The main difference is Node.js is server side and jQuery is client side.

  1. What can be done by Node.js which can not be done by jQuery?

Node.js enables server side code to be written in JavaScript capability which can not be achieved by jQuery.

  1. Is Node.js capable of consuming web services? If yes, then is it possible to do the same with jQuery? If not, then what is the reason for it?

Both are capable of consuming a web service. The difference is jQuery will be doing it in client side while Node.js will be doing it in server side.

  1. What are the features of Node.js? How it is different from jQuery?

The main difference is it enables server scripting in JavaScript.

  1. In which situation should I go with Node.js or jQuery?

Server side scripting, like replacement for PHP, ASP.NET

  1. Please also mention some special features of Node.js and jQuery?

Benefits of using both?

Node.js enables server-side scripting in JavaScript. jQuery simplify client-side scripting.

like image 182
Emmanuel N Avatar answered Sep 30 '22 21:09

Emmanuel N