Web

Browser JavaScript

Terms

7 terms

  • Async/await

    Async/await in browser JavaScript is syntax for writing promise-based asynchronous code that reads like sequential code without blocking the page.

  • Event listener

    An event listener is a function registered on a DOM object that the browser calls whenever a specified event, such as a click or keypress, occurs.

  • Event loop

    The event loop is the browser scheduling model that runs JavaScript tasks, drains microtasks and decides when the page renders on a single thread.

  • Fetch API

    The Fetch API is the promise-based browser JavaScript interface for making HTTP requests and reading responses as text, JSON, binary data or streams.

  • Promise

    A Promise in browser JavaScript is an object representing the eventual result of an asynchronous operation, either a fulfilled value or a rejection.

  • Service worker

    A service worker is a background script in browser JavaScript that intercepts network requests, enabling offline pages, caching and push messages.

  • Web worker

    A web worker is a browser JavaScript thread that runs scripts in the background, keeping heavy computation off the main thread and the page responsive.