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?
My understanding of an API is this:
So why is DOM or Jquery considered to be an API? |
||||
|
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.
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. |
|||||||
|