📖 Syntax Reference
Variable Declaration
eta variableName = value
Declares a variable with a name and assigns it a value.
Examples:
eta x = 10eta name = "John"eta sum = x + y
Print Statement
lekh expression
Prints a value, variable, or string to the output.
Examples:
lekh xlekh "Hello World"lekh sum
If-Else Statements
jodi condition { ... } nahole { ... }
Conditional execution based on a condition.
Example:
eta age = 18jodi age >= 18 { lekh "Adult"} nahole { lekh "Minor"}
Loops
chalao var theke start porjonto end { ... }
For loop that iterates from start to end value.
Example:
chalao i theke 1 porjonto 5 { lekh "Number:" lekh i}
Complex Example
Loop with If-Else:
chalao num theke 1 porjonto 10 { jodi num == 5 { lekh "Found five!" } nahole { lekh num }}
Supported Data Types
- Numbers:
10, 25, 100 - Strings:
"Hello", "World" - Variables:
x, y, name - Expressions:
x + y, a - b
Operators
=Assignment+Addition-Subtraction*Multiplication/Division==Equal to!=Not equal to<Less than>Greater than<=Less than or equal>=Greater than or equal
💻 Code Editor
📤 Output
Click "Run Code" to see the output here...
🔧 Generated JavaScript
Generated JavaScript will appear here...