Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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.

2  
CoffeeScript is an alternate syntax for JavaScript which compiles into JavaScript. Apples and oranges with jQuery. –  gahooa Sep 9 '12 at 23:08
5  
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
2  
Why is this not a real question? It seems fine to me.] –  Toby Allen Nov 11 '12 at 19:59
1  
    
removed the coffeescript q as it is irrelevant. –  Michael Durrant Nov 18 at 12:40

1 Answer 1

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
2  
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.