Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know that you can use JavaScript server side with node.js, but can we use jQuery for backend as well?

share|improve this question

closed as not a real question by Jim G., Yusubov, Matthieu, Walter, gnat Sep 10 '12 at 12:16

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

CoffeeScript is an alternate syntax for JavaScript which compiles into JavaScript. Apples and oranges with jQuery. – gahooa Sep 9 '12 at 23:08
Why would you want to use jQuery with JavaScript if you don't need worry about the DOM? – Jim G. Sep 9 '12 at 23:16
Why is this not a real question? It seems fine to me.] – Toby Allen Nov 11 '12 at 19:59
If you need JQuery for DOM manipulation, I'd suggest using Cheerio instead. – Oliver Weiler Nov 18 '14 at 12:55

jQuery is not a programming language but a JavaScript library, so you'd just use plain JavaScript, possibly with something like Underscore.js to add useful methods similar to e.g. $.each() or $.map().

But yes, you can use jQuery in node.js together with another package that provides a DOM.

share|improve this answer
The useful methods are available in ES5 though, and no need to worry about cross-browser issues on the server side. – Florian Margaine Sep 10 '12 at 6:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.