Skip to main content

Print to JS (value)

Prints value to JavaScript console for debugging.

Print to JS (value) block

Description

The Print to JS (value) block prints value to JavaScript console for debugging. This is a code block part of the JS Debugger drawer.

Usage

Prints value to JavaScript console for debugging.

Syntax

Inputs in this block:

  • A value (number, string, or variable) to print to the console

Example

The Print to JS (value) block is useful for debugging your StarLogo Nova programs by outputting values to the browser's JavaScript console, helping you track variable values and program state during execution.

Notes

To view the output, open your browser's developer console (usually F12) while running your StarLogo Nova project.