BanglaCode keywords are written in Banglish (Bengali words using English/Latin script). This makes it easy to type on any keyboard while remaining familiar to Bengali speakers.
Complete Keyword Table
Keyword
Bengali Meaning
English Equivalent
Description
dhoro
hold/let
var/let
Variable declaration
sthir
fixed/constant
const
Constant declaration (immutable)
bishwo
world/global
global
Global variable declaration
jodi
if
if
Conditional statement
nahole
else/otherwise
else
Else branch
jotokkhon
as long as
while
While loop
ghuriye
rotating/looping
for
For loop
kaj
work/task
function
Function declaration
ferao
return/give back
return
Return from function
sreni
class/category
class
Class declaration
shuru
start/begin
constructor
Constructor method
notun
new
new
Create instance
ei
this
this
Current instance reference
sotti
truth
true
Boolean true
mittha
false/lie
false
Boolean false
khali
empty
null
Null value
ebong
and
and
Logical AND
ba
or
or
Logical OR
na
not/no
not
Logical NOT
thamo
stop
break
Break from loop
chharo
skip/leave
continue
Continue to next iteration
ano
bring
import
Import module
pathao
send
export
Export symbol
hisabe
as
as
Alias for imports
instanceof
instance check
instanceof
Check class instance
delete
remove
delete
Delete property/index
chesta
try/attempt
try
Try block
dhoro_bhul
catch error
catch
Catch block
shesh
end/finish
finally
Finally block
felo
throw
throw
Throw exception
bikolpo
alternative
switch
Switch statement
khetre
case
case
Switch case
manchito
default
default
Default switch branch
proyash
effort/attempt
async
Async function declaration
opekha
wait/await
await
Wait for promise
utpadan
produce/yield
yield
Yield next value from generator
pao
get
get
Class getter
set
set
set
Class setter
Keywords by Category
Variable Declaration
1
// dhoro - declare a mutable variable (like let/var)
2
dhoro naam ="Rahim";
3
dhoro boyosh =25;
4
5
// sthir - declare a constant (cannot be changed)
6
sthir PI =3.14159;
7
sthir MAX_SIZE =100;
8
9
// bishwo - declare a global variable (accessible everywhere)
10
bishwo counter =0;
11
12
kaj increment() {
13
counter = counter +1; // Modifies global
14
}
15
16
increment();
17
dekho(counter); // 1
Boolean & Null Literals
1
// sotti - true
2
dhoro isValid =sotti;
3
4
// mittha - false
5
dhoro isComplete =mittha;
6
7
// khali - null
8
dhoro data =khali;
Logical Operators
1
// ebong - logical AND
2
jodi (age >=18ebong hasLicense) {
3
dekho("Can drive");
4
}
5
6
// ba - logical OR
7
jodi (isAdmin ba isModerator) {
8
dekho("Has access");
9
}
10
11
// na - logical NOT
12
jodi (na isBlocked) {
13
dekho("User is active");
14
}
Conditionals
1
// jodi - if
2
// nahole - else
3
dhoro score =85;
4
5
jodi (score >=90) {
6
dekho("Excellent!");
7
} naholejodi (score >=70) {
8
dekho("Good job!");
9
} nahole {
10
dekho("Keep trying!");
11
}
Loops
1
// jotokkhon - while loop
2
dhoro i =0;
3
jotokkhon (i <5) {
4
dekho(i);
5
i = i +1;
6
}
7
8
// ghuriye - for loop
9
ghuriye (dhoro j =0; j <5; j = j +1) {
10
dekho(j);
11
}
12
13
// thamo - break out of loop
14
// chharo - continue to next iteration
15
ghuriye (dhoro k =0; k <10; k = k +1) {
16
jodi (k ==3) {
17
chharo; // Skip 3
18
}
19
jodi (k ==7) {
20
thamo; // Stop at 7
21
}
22
dekho(k);
23
}
Functions
1
// kaj - function declaration
2
// ferao - return value
3
kaj add(a, b) {
4
ferao a + b;
5
}
6
7
kaj greet(naam) {
8
dekho("Namaskar,", naam);
9
}
10
11
// Call functions
12
dhoro sum = add(5, 3);
13
greet("Rahim");
Generators
1
// kaj* - generator function
2
// utpadan - yield next value
3
kaj* count(max) {
4
dhoro i =0;
5
jotokkhon (i < max) {
6
utpadan i;
7
i = i +1;
8
}
9
}
10
11
dhoro g = count(3);
12
dekho(g.next()["value"]); // 0
13
dekho(g.next()["value"]); // 1
14
dekho(g.next()["value"]); // 2
Classes & OOP
1
// sreni - class
2
// shuru - constructor
3
// notun - new instance
4
// ei - this (current instance)
5
6
sreni Car {
7
shuru(brand, model) {
8
ei.brand = brand;
9
ei.model = model;
10
}
11
12
kaj getInfo() {
13
feraoei.brand +" "+ei.model;
14
}
15
}
16
17
dhoro myCar =notun Car("Toyota", "Corolla");
18
dekho(myCar.getInfo());
Modules
math.bangbanglacode
1
// pathao - export
2
pathaokaj add(a, b) {
3
ferao a + b;
4
}
5
6
pathaodhoro PI =3.14159;
main.bangbanglacode
1
// ano - import
2
// hisabe - as (alias)
3
ano"math.bang"hisabe math;
4
5
dekho(math.add(5, 3));
6
dekho(math.PI);
Error Handling
1
// chesta - try
2
// dhoro_bhul - catch
3
// shesh - finally
4
// felo - throw
5
6
chesta {
7
dhoro result = riskyOperation();
8
} dhoro_bhul (error) {
9
dekho("Error:", error);
10
} shesh {
11
dekho("Cleanup done");
12
}
13
14
// Throw custom error
15
kaj validateAge(age) {
16
jodi (age <0) {
17
felo"Age cannot be negative";
18
}
19
}
Async/Await
1
// proyash - async (marks a function as asynchronous)
2
// opekha - await (waits for a promise to resolve)
3
4
// Declare async function
5
proyash kaj fetchData() {
6
opekha ghumaao(1000); // Sleep for 1 second
7
ferao"Data fetched";
8
}
9
10
// Use async/await
11
proyash kaj main() {
12
dekho("Starting...");
13
dhoro result = opekha fetchData();
14
dekho(result); // Data fetched
15
}
16
17
main();
18
19
// Parallel execution with sob_proyash
20
proyash kaj loadAll() {
21
dhoro results = opekha sob_proyash([
22
fetchData(),
23
fetchData(),
24
fetchData()
25
]);
26
dekho("All done!", results);
27
}
For detailed async/await documentation and examples, see the Async/Await guide.
Reserved Words
All 31 keywords are reserved and cannot be used as variable names, function names, or identifiers. Attempting to use a keyword as an identifier will result in a syntax error.