# What Is a Function

A function is a named set of steps you write once and run whenever you need it, by calling its name.

![Cheat sheet: What Is a Function](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/10/12a1ac6b46b74f7c9457150fe9eb179f.webp)

- Category: JavaScript
- Level: Novice
- Tags: Function (javascript), Function Declaration, JavaScript, Single Responsibility Principle
- Updated: November 1, 2026

Source: https://www.ask-codey.com/cheat-sheets/javascript-functions-what-is-a-function-cheat-sheet
