Tell me more ×
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.

My understanding of an API is this:

An API is the interface implemented by an application which allows other applications to communicate with it.

So why is DOM or Jquery considered to be an API?

share|improve this question

closed as not a real question by Jarrod Roberson, GlenH7, ElYusubov, Walter, Yannis Rizos Nov 9 '12 at 22:58

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, see the FAQ.

1 Answer

Simple:

They are literally interfaces that you program JavaScript applications against - API by definition.

Edit:

jQuery is a library that has a public API to provide an abstraction over the DOM. So when people refer the jQuery API, they are referring to this interface provided by the library.

share|improve this answer
That might be a close enough description for the DOM, but jQuery an API??? – Yannis Rizos Nov 9 '12 at 22:00
@YannisRizos You are technically correct. This was a semi-smart-ass response, so I edited for clarification. – bunglestink Nov 9 '12 at 22:06
thanks for the response guys..but its strange that my question is down voted and the answer is upvoted – user1463541 Nov 9 '12 at 22:49

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