Author: Saim Khalid

  • Geolocation API

    Geolocation API The Geolocation API is a web API that provides a JavaScript interface to access the user’s geographical location data. A Geolocation API contains the various methods and properties that you can use to access the user’s location on your website. It detects the location of the user’s using the device’s GPS. The accuracy of the location…

  • Fetch API

    What is a Fetch API? The JavaScript Fetch API is a web API that allows a web browser to make HTTP request to the web server. In JavaScript, the fetch API is introduced in the ES6 version. It is an alternative of the XMLHttpRequest (XHR) object, used to make a ‘GET’, ‘POST’, ‘PUT’, or ‘DELETE’ request to…

  • Worker API

    Web Worker API The worker API is a web API that allows us to run JavaScript code in the background thread. Whenever the web page loads in the browser, it becomes interactive after every <script> tag loads in the browser. Web workers allows users to interact with the web page without loading the whole JavaScript code in the browser.…

  • Forms API

    Web Forms API JavaScript Forms API is a web API that allows us to interact with and manipulate HTML forms. It provides a set of methods and properties that are used to perform client-side form validation. Its also helpful to ensure data integrity before form submission. The forms API also referred to as Form Validation API or…

  • Storage API

    What is Web Storage API? The web storage API in JavaScript allows us to store the data in the user’s local system or hard disk. Before the storage API was introduced in JavaScript, cookies were used to store the data in the user’s browser. The main problem with the cookies is that whenever browsers request…

  • History API

    Web History API In JavaScript, the history API allows us to access the browsers history. It can be used to navigate through the history. JavaScript History API provides us with methods to manipulate window history object. History object is a property of JavaScript window object. The window history object contains the array of visited URLs in the…

  • Web API

    A Web API is an application programming interface (API) for web. The concept of the Web API is not limited to JavaScript only. It can be used with any programming language. Lets learn what web API is first. What is Web API? The API is an acronym for the Application Programming Interface. It is a…

  • Console Object

    Window Console Object In JavaScript, the ‘console’ object is a property of the window object. It allows the developers to access the debugging console of the browser. The console object contains the various methods used for different functionalities. In Node.js, the console object is used to interact with the terminal. We access the console object…

  • Location Object

    Window Location Object The location object in JavaScript provides information about the browser’s location, i.e., URLs. It is a built-in property of both the window and document objects. We can access it using either window.location or document.location. The ‘location’ object contains various properties and methods to get and manipulate the information of the browser’s location (URL). JavaScript Location Object Properties We can use the…

  • Navigator Object

    Window Navigator Object The navigator object in JavaScript is used to access the information of the user’s browser. Using the ‘navigator’ object, you can get the browser version and name and check whether the cookie is enabled in the browser. The ‘navigator’ object is a property of the window object. The navigator object can be accessed using the read-only window.navigator property.…