> ## Documentation Index
> Fetch the complete documentation index at: https://bruno-a6972042-mintlify-c74cb75a.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Scripting

Bruno allows you to write JavaScript code before sending a request (Pre-request) and after receiving a response (Post-response). Use scripts to generate dynamic data, manipulate requests, parse responses, and set variables.

* [Request Methods](/testing/script/javascript-reference#request)
* [Response Methods](/testing/script/javascript-reference#response)
* [Bruno Utilities](/testing/script/javascript-reference/#environments)

<img src="https://mintcdn.com/bruno-a6972042-mintlify-c74cb75a/zSUNEb7-sp_J0h6R/images/screenshots/script/scripting.webp?fit=max&auto=format&n=zSUNEb7-sp_J0h6R&q=85&s=83767a814b2c85c8e533bdd5ae0997e4" alt="bru lang sample" width="2472" height="924" data-path="images/screenshots/script/scripting.webp" />
