---
title: "JS Script"
description: "References a JavaScript script document in the workflow."
canonical: https://docs.nodetool.ai/nodes/nodetool/constant/jsscript
markdown: https://docs.nodetool.ai/nodes/nodetool/constant/jsscript.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/constant/jsscript.md
---

# JS Script

**Type:** `nodetool.constant.JsScript`

**Namespace:** `nodetool.constant`

## Description

References a JavaScript script document in the workflow.
    javascript, js, script, code, reference

    Use cases:
    - Pass a JS script between nodes
    - Open and edit the referenced script in the code editor
    - Bring a JS script file from the project into a graph

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| value | `jsscript` |  | - |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `jsscript` |  |

## Related Nodes

Browse other nodes in the [nodetool.constant](/nodes/nodetool/constant/) namespace.
