---
title: Code examples in JavaScript
summary: null
url: https://www.fastly.com/documentation/solutions/examples/javascript
---


import CodeExamplesProvider from '~providers/code-examples'

These code examples have an implementation in JavaScript. To learn more about using JavaScript with our [Compute](/guides/compute) platform, see [using JavaScript](/guides/compute/developer-guides/javascript).

> **NOTE:** Some of the code examples here are also available in languages other than JavaScript. Being able to see how the same solution can be achieved in other languages is often useful for migrations or learning, so where a code example has multiple implementations, we show all implementations together.

<CodeExamplesProvider language='javascript' render={nodes => (
  <CardGallery
    labelFilter={{
      url: '/solutions/examples/javascript',
      queryParam: 'tag',
    }}
    data={nodes.map((node) => ({
      link: node.path,
      title: node.title,
      labels: node.tags,
      content: node.summary,
    }))}
  />
)} />

<Partial name="license" />
