> For the complete documentation index, see [llms.txt](https://docs.loadmill.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.loadmill.com/test-editor/steps/code-step.md).

# Code step

The code steps allows running JavaScript code snippets at any point without spinning an entire request. Among it's usages are introducing initialization logic at first step of a flow, processing specific data right after a generic shared flow, and providing more visibility and clarity in flows and it's special logic steps.

<figure><img src="/files/cN9KSNrTWQwl69b9yhnP" alt=""><figcaption></figcaption></figure>

The code step consists of two areas:

1. Code editor - a place to write your JavaScript snippets
2. Flow control - Allows skipping to another step, stopping the flow and add wait time after step execution.
