# Script

*noun*

say it: **“SKRIPT”** **/skrɪpt/**

A file or block of JavaScript code that a browser or Node.js reads and runs from top to bottom.

## What is **Script** in JavaScript?

**Script** — A file or block of JavaScript code that a browser or another runtime can execute.

```javascript
const greeting = "Hello, JavaScript!";
```

## In a sentence

- “My **script**, receipt.js, prints a coffee order's total every time I run it.”

Level: Novice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=1)

Updated: November 9, 2026

## In other subjects

- [Script in Python](https://www.ask-codey.com/glossary/script)

Source: https://www.ask-codey.com/glossary/script-javascript
