# Code

Code blocks allow for users to execute JavaScript code in a Callable

<figure><img src="https://3035252822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeiBCAl6qTuG0sZpeXLxC%2Fuploads%2Fh79hGPkMx4o4JCBbrNkP%2FScreenshot%202023-07-24%20at%204.07.04%20PM.png?alt=media&#x26;token=b0097b13-d6c9-40c2-b7fc-2edeb2301851" alt=""><figcaption></figcaption></figure>

The env variable passed into the function allows for referencing previous block outputs inside the Code Block. It uses the syntax `env.state.BLOCK_NAME` to reference a block by its name. In the example above, the block name for the code block would be `CODE_1`. User's can name blocks anything as long as it is unique inside the Callable.
