How to use javascript api?

Should i include any files into my project for that?
what is javascript api? and how to use them?

Hey @phani,

I’m not sure what you mean by JavaScript API - are you talking about the language’s built-in functions (i.e the standard library)? Or the various browser APIs (e.g. the DOM API, localStorage, etc)?

yes apis like localstorage…

Without knowing anything about your project, how is anyone supposed to give an informed answer?

that is simple html file with a external css and js files. But what ever the project is i would like to know what is api and how to use it.

I got only what can use from those api but there is description regarding how to use it.
For example to use a plugin we download the js file and links it in the header then what about api?
there will any file to link or any other way?

I have linked to MDN’s description of the various JavaScript APIs. But you’d need to do the reading yourself.

Web APIs are built-in to browsers, so you don’t have to include any files or do anything special to be able to use them. The only thing you need to be aware of is browser support, as some browsers (especially older ones) may not support the API you want to use. For this reason, it’s always a good idea to check if the API is supported before trying to use that feature, e.g:

if (window.localStorage) {
  // browser supports the API

Now i got and understood why you called them browser apis.
Thanks for the help :slight_smile:

Thanks for the help :slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.