---
title: "Comment by Favourite Jome on \"I'm Jason Lengstorf. I host a live pair programming show called Learn With Jason, I'm the VP of Developer Experience at Netlify. AMA!\" | Hashnode"
description: "Hello Jason! I&#39;ll love to know about Serverless functions, what they are used for how they can be implemented. Thanks"
url: "https://hashnode.com/posts/ama/61dfc8dc8a0e7c6db7fba623/comment/61e0837b4a9e96783d237934"
---

[Discussion](https://hashnode.com/posts/ama/61dfc8dc8a0e7c6db7fba623)

Comment [I'm Jason Lengstorf. I host a live pair programming show called Learn With Jason, I'm the VP of Developer Experience at Netlify. AMA!](https://hashnode.com/posts/ama/61dfc8dc8a0e7c6db7fba623)

[Favourite Jome](https://hashnode.com/@Favourite)

[Jan 13, 2022](https://hashnode.com/posts/ama/61dfc8dc8a0e7c6db7fba623/comment/61e0837b4a9e96783d237934)

Hello Jason!

I'll love to know about Serverless functions, what they are used for how they can be implemented. Thanks

[Jason Lengstorf](https://hashnode.com/@jlengstorf)

[Jan 14, 2022](https://hashnode.com/posts/ama/61dfc8dc8a0e7c6db7fba623/comment/61e0837b4a9e96783d237934#reply-61e1b49ed546507ab034325e)

hi!

serverless functions are one of my favorite tools! I use them for anything that requires a bit of server-like processing or secure calls

a few examples:

-   to access an API that requires a token, I use a serverless function and add the token as an environment variable, which lets me securely get the data
-   to provide a simple API, such as the [_Learn With Jason_ schedule API](https://www.learnwithjason.dev/api/schedule)
-   to handle form submissions
-   to respond to events from other services (for example, sending a receipt whenever someone buys something from my store)

the easiest way I know of to implement serverless functions is to create a new Netlify project and add a file at `netlify/functions/hello-world.ts` with the following code:

```
export const handler = async function () => {
  return {
    statusCode: 200,
    body: 'Hello world!',
  };
};
```

to test locally, install the Netlify CLI:

```
npm install -g netlify-cli
```

then start the site:

```
ntl dev
```

you'll be able to call your function at `[localhost/.netlify/functions/hello-world](http://localhost:8888/.netlify/functions/hello-world)`

I have a [post on getting started with serverless functions](https://www.learnwithjason.dev/blog/serverless-functions/deploy-first-serverless-function), a [video tutorial for getting started with serverless functions](https://egghead.io/courses/create-a-typescript-powered-serverless-react-application-cf0acfbf?af=azvpe4), or if you want a full-blown course I have [a Frontend Masters course on serverless functions](https://frontendmasters.com/workshops/serverless-functions/)

[Favourite Jome](https://hashnode.com/@Favourite)

[Jan 14, 2022](https://hashnode.com/posts/ama/61dfc8dc8a0e7c6db7fba623/comment/61e0837b4a9e96783d237934#reply-61e1bf46d546507ab0343375)

Okay, thanks [Jason Lengstorf](https://hashnode.com/@jlengstorf). I'll watch the course on Frontend Masters since I have access to it.
