![](http://web.dev/static/javascript/image/hero-javascript.png)

### JavaScript

JavaScript is the scripting language of the web. It provides rich interactivity and dynamic content for web applications. With it, you can build user experiences that can help users accomplish complex tasks, store user data, and more. Here, you can peruse our collection of JavaScript content and learn a variety of concepts and techniques to help you improve your JavaScript skills.

### Jump ahead on this page:

[](http://web.dev/javascript#new-to-javascript)

### [Learn JavaScript](http://web.dev/javascript#new-to-javascript)

If you're new to JavaScript, we've got you covered. Our Learn JavaScript course teaches the ins and outs of JavaScript, helping you to get up to speed. [![](http://web.dev/static/baseline/image/newly-available.svg)](http://web.dev/javascript#baseline-newly-available-javascript-features)

### [Baseline Newly available JavaScript features](http://web.dev/javascript#baseline-newly-available-javascript-features)

Learn about the latest JavaScript features that are newly available in all major browser engines. [](http://web.dev/javascript#get-familiar-with-common-and-useful-javascript-features)

### [Get familiar with common and useful JavaScript features](http://web.dev/javascript#get-familiar-with-common-and-useful-javascript-features)

JavaScript provides many features to help you build applications that respond to the needs of your users. [](http://web.dev/javascript#optimize-poor-inp-caused-by-javascript)

### [Optimize poor INP caused by JavaScript](http://web.dev/javascript#optimize-poor-inp-caused-by-javascript)

[Interaction to Next Paint (INP)](https://web.dev/articles/inp) is an important responsiveness metric that measures page responsiveness. These guides contain JavaScript tips to help you keep your pages responsive to users. [](http://web.dev/javascript#optimize-third-party-javascript-resources)

### [Optimize third-party JavaScript resources](http://web.dev/javascript#optimize-third-party-javascript-resources)

Third-party JavaScript can be a cause of performance issues in web applications. Learn how to manage third-party scripts to keep your web applications fast. [](http://web.dev/javascript#dive-into-javascript-patterns)

### [Dive into JavaScript patterns](http://web.dev/javascript#dive-into-javascript-patterns)

Check out these JavaScript patterns you can use to quickly accomplish common tasks in your web applications. [![](http://web.dev/static/learn/javascript/card.png)](http://web.dev/learn/javascript) COURSE

### [New to JavaScript?](http://web.dev/learn/javascript)

If you're new to JavaScript, we've got you covered. Our [Learn JavaScript](https://web.dev/learn/javascript) course guides you through how JavaScript works, beginning with the basics such as variables, functions, and conditional statements. From there, you'll tackle more complex topics such as prototypal inheritance, classes, and other topics to help you hone your JavaScript skills so that you can build rich web applications.
[Learn JavaScript!](http://web.dev/learn/javascript)

### Baseline Newly available JavaScript features

[Baseline](https://web.dev/baseline) signals to web developers when web platform features can be safely used in all major browser engines. Here are some JavaScript features that are now Baseline Newly available.
[![](http://web.dev/static/baseline/image/newly-available.svg)](http://web.dev/blog/promise-try-baseline)

### [Promise.try()](http://web.dev/blog/promise-try-baseline)

Promise.try() became Baseline Newly available in January 2025. [![](http://web.dev/static/baseline/image/newly-available.svg)](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize)

### [Resizable ArrayBuffer](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize)

Resizable ArrayBuffer became Baseline Newly available in July 2024. [![](http://web.dev/static/baseline/image/newly-available.svg)](http://web.dev/blog/set-methods)

### [Set methods](http://web.dev/blog/set-methods)

Set methods became Baseline Newly available in June 2024. [![](http://web.dev/static/baseline/image/newly-available.svg)](https://developer.mozilla.org/docs/Web/API/CustomStateSet)

### [CustomStateSet](https://developer.mozilla.org/docs/Web/API/CustomStateSet)

CustomStateSet became Baseline Newly available in May 2024. [![](http://web.dev/static/baseline/image/newly-available.svg)](http://web.dev/blog/screen-wake-lock-supported-in-all-browsers)

### [Screen Wake Lock API](http://web.dev/blog/screen-wake-lock-supported-in-all-browsers)

The Screen Wake Lock API became Baseline Newly available in May 2024. [![](http://web.dev/static/baseline/image/newly-available.svg)](http://web.dev/blog/intl-segmenter)

### [intl.Segmenter](http://web.dev/blog/intl-segmenter)

intl.Segmenter became Baseline Newly available in April 2024. [![](http://web.dev/static/baseline/image/newly-available.svg)](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers)

### [Promise.withResolvers()](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers)

promise.withResolvers() became Baseline Newly available in March 2024. [![](http://web.dev/static/baseline/image/newly-available.svg)](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy)

### [groupBy() functions](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy)

groupBy() functions became Baseline Newly available in March 2024. [![](http://web.dev/static/baseline/image/newly-available.svg)](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer)

### [ArrayBuffer transfer() and transferToFixedLength()](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer)

The ArrayBuffer transfer() and transferToFixedLength() methods became Baseline Newly available in March 2024. [![](http://web.dev/static/baseline/image/newly-available.svg)](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/fromAsync)

### [Array fromAsync() static method](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/fromAsync)

Array.fromAsync() became Baseline Newly available in January 2024.

### Get familiar with common and useful JavaScript features

JavaScript gives you a lot of tools to help you build applications that respond to the needs of your users. Here are some common features might want to use in your web applications that are worth knowing about!
[](http://web.dev/articles/promises)

### [Promises](http://web.dev/articles/promises)

Promises allow you to asynchronously execute code after a certain event occurs. [Learn more](http://web.dev/articles/promises) [](http://web.dev/articles/introduction-to-fetch)

### [The `fetch` API](http://web.dev/articles/introduction-to-fetch)

The `fetch` API allows you to make HTTP requests to fetch data from the web on the front end. [Learn more](http://web.dev/articles/introduction-to-fetch) [](http://web.dev/articles/indexeddb)

### [IndexedDB](http://web.dev/articles/indexeddb)

The IndexedDB API offers client-side storage of structured data, including files and blobs. [Learn more](http://web.dev/articles/indexeddb)

### Optimize poor INP caused by JavaScript

How you use JavaScript can have an effect on your web application's [Interaction to Next Paint (INP)](https://web.dev/articles/inp). These guides will help you to get a handle on page repsonsiveness issues caused by JavaScript.
[](http://web.dev/articles/optimize-long-tasks)

### [Optimize long tasks](http://web.dev/articles/optimize-long-tasks)

Long tasks on the main thread can cause your web application to be unresponsive. Learn how to optimize long tasks to improve your web application's INP. [Learn more](http://web.dev/articles/optimize-long-tasks) [](http://web.dev/articles/optimize-input-delay)

### [Optimize input delay](http://web.dev/articles/optimize-input-delay)

Long input delays occur when users interact with a page and the browser takes too long respond---and JavaScript can be a common culprit. Read this guide and learn how you can keep input delays shorter and your web application snappier. [Learn more](http://web.dev/articles/optimize-input-delay) [](http://web.dev/articles/script-evaluation-and-long-tasks)

### [Script evaluation and long tasks](http://web.dev/articles/script-evaluation-and-long-tasks)

When scripts are downloaded during page load, they can cause long tasks that can affect your web application's INP. Learn how to optimize for long script evaluation tasks to keep your INP low. [Learn more](http://web.dev/articles/script-evaluation-and-long-tasks) [](http://web.dev/articles/off-main-thread)

### [Use web workers to run JavaScript off the browser's main thread](http://web.dev/articles/off-main-thread)

Not everything needs to run on the main thread. If you have large batches of work that take a long time to run, you can offload them to web worker threads to keep your web application as responsive as it can be. [Learn more](http://web.dev/articles/off-main-thread)

### Optimize third-party JavaScript resources

A common performance problem on the web involves the use of third-party JavaScript, which can cause pages to load more slowly and even cause problems with page responsiveness. Check out these guides to get a handle on some common third-party JavaScript performance problems. [](http://web.dev/articles/third-party-javascript)

### [Third-party JavaScript performance](http://web.dev/articles/third-party-javascript)

Find out how third-party JavaScript can affect performance and what you can do to keep it from slowing down your sites. [Learn more](http://web.dev/articles/third-party-javascript) [](http://web.dev/articles/identify-slow-third-party-javascript)

### [Identify slow third-party JavaScript](http://web.dev/articles/identify-slow-third-party-javascript)

Supercharge your performance detective skills with Lighthouse and Chrome DevTools. [Learn more](http://web.dev/articles/identify-slow-third-party-javascript) [](http://web.dev/articles/efficiently-load-third-party-javascript)

### [Efficiently load third-party JavaScript](http://web.dev/articles/efficiently-load-third-party-javascript)

Learn how to load third-party JavaScript efficiently so you can improve the performance of your web applications. [Learn more](http://web.dev/articles/efficiently-load-third-party-javascript) [](http://web.dev/articles/tag-best-practices)

### [Best practices for tags and tag managers](http://web.dev/articles/tag-best-practices)

Learn how to optimize tags and tag managers for Core Web Vitals, so that these useful tools have the least impact on your web application's performance. [Learn more](http://web.dev/articles/tag-best-practices)

### Dive into JavaScript patterns

Check out these patterns you can use to quickly accomplish common tasks in your web applications using JavaScript.
[![](http://web.dev/static/articles/web-apps/hero.png)](http://web.dev/articles/web-apps)

### [Web applications](http://web.dev/articles/web-apps)

Check out these patterns to accomplish common tasks in your web applications. [See patterns](http://web.dev/articles/web-apps) [![](http://web.dev/static/articles/files/hero.png)](http://web.dev/articles/files)

### [Files and directories](http://web.dev/articles/files)

Learn patterns for working with files and directories in JavaScript. [See patterns](http://web.dev/articles/files) [![](http://web.dev/static/articles/clipboard/hero.png)](http://web.dev/articles/clipboard)

### [Clipboard](http://web.dev/articles/clipboard)

Learn how to use Clipboard APIs in JavaScript to provide copy and paste functionality in your web applications. [See patterns](http://web.dev/articles/clipboard)