Skip to main content
Skip to content

Output keyword

bol — print / console.log

bol prints values to the output panel, one line per call. Give it several values separated by commas and it joins them with spaces.

Meaning: "say" — say this in the output

How bol works

bol("Namaste"); prints one line. bol("Total:", 42); prints Total: 42 — each comma becomes a single space. You can also write bol "Namaste"; without brackets.

Every value prints in a readable form: sahi and galat for booleans, khali for null, lists in square brackets and objects as { key: value }. Text inside lists and objects is shown without quotes.

chhap is an exact alias. Use whichever reads better to you.

Syntax

syntax
bol(value1, value2, ...);
bol value;

Runnable example

Expected output

Press Run to try it

Namaste DuniyaSaal: 2026 | Pass: sahi[1, 2, 3] { naam: Ira }Line 1
Line 2

Same idea in JavaScript and Python

JavaScript
console.log("Namaste Duniya");
console.log("Saal:", 2026, "| Pass:", true);
Python
print("Namaste Duniya")
print("Saal:", 2026, "| Pass:", True)

Common mistakes

Forgetting the quotes

Without quotes, Namaste is read as the name of a variable, and the program stops because no such variable exists.

Galat
bol(Namaste);
Sahi
bol("Namaste");

Using + where you meant a comma

+ with text joins things, so "Total: " + 5 + 5 becomes Total: 55. Use commas, or put the maths in brackets.

Galat
bol("Total: " + 5 + 5);
Sahi
bol("Total:", 5 + 5);
bol("Total: " + (5 + 5));

bol: frequently asked questions

What is the difference between bol and chhap?

None. chhap is an alias of bol; both print their values on one line separated by spaces.

How do I print an empty line?

Call bol(""); — it prints a line with nothing on it. You can also put \n inside a string to break it across lines.