Bnlang Builtins

This page collects all built‑in things exposed by Bnlang—global values/functions and the standard library objects you know from JavaScript—presented with three parallel names (English, Bangla, Banglish).
You can use any of the available names interchangeably in code; pick one language style per file for readability.


Name Model

  • Every builtin can be called by English, Bangla, or Banglish names.
  • Internally these are the same thing; choose whichever name suits your file’s language.
  • In docs we show them as “available names”, not as technical aliasing.

Quick Table of Builtins

Use this as a map. Details and examples for each item live in their own pages (linked names).

CategoryEnglishBanglaBanglishNotes
Globals: valuesundefined, NaN, Infinityঅসংজ্ঞায়িত, সংখ্যা_নয়, অসীমasongyayito, sonkhaNoy, oshimPredefined global values.
Globals: functionseval, isFinite, isNaN, parseInt, parseFloat, encodeURI, decodeURI, encodeURIComponent, decodeURIComponent, queueMicrotaskমূল্যায়ন, সসীম_কি, সংখ্যা_নয়_কি, পূর্ণসংখ্যায়_রূপান্তর, ভগ্নাংশে_রূপান্তর, ইউআরআই_এনকোড, ইউআরআই_ডিকোড, ইউআরআই_উপাদান_এনকোড, ইউআরআই_উপাদান_ডিকোড, ক্ষুদ্র_কাজের_সারিmullayon, soshimKi, sonkhaNoyKi, purnoshonkhaTeRupantor, voghnangsheRupantor, uriEncode, uriDecode, uriUpadanEncode, uriUpadanDecode, khudroKajerSariGlobal helpers.
Consoleconsoleকনসোল— + helpers ছাপাও/দেখাও/লিখো/প্রিন্ট/printNode‑like logger with pretty‑printer.
ArrayArrayতালিকাTalikaConstruction, traversal, search, transform, etc.
ObjectObjectবস্তুBostuCreate/assign/inspect.
Function (ctor)Functionনির্মাতা_ফাংশনNirmataFunctionConstruct new functions.
NumberNumberসংখ্যাSonkhaConstants, checks, parse & format.
StringStringঅক্ষরমালাOkkhoromalaText search/modify/format.
BooleanBooleanবুলিয়ানBooliyanTrue/false wrapper (typically avoid new).
MathMathগণিতGonitConstants & numeric functions.
DateDateতারিখTarikhTime & calendar utilities.
RegExpRegExpরেজেক্সRegExRegular expressions.
JSONJSONজেসনJesonParse/stringify.
MapMapমানচিত্রManchitroKey→value (any types).
SetSetসমষ্টিSomoshtiUnique values.
WeakMapWeakMapদুর্বল_মানচিত্রDurbolManchitroObject keys, weakly held.
WeakSetWeakSetদুর্বল_সমষ্টিDurbolSomoshtiObject values, weakly held.
PromisePromiseপ্রতিশ্রুতিProtishrutiAsync values, chaining.
ProxyProxyপ্রক্সিIntercept object ops.
ReflectReflectপ্রতিফলনProtifolonObject meta‑ops.
SymbolSymbolপ্রতীকProtikUnique keys & well‑known symbols.
AtomicsAtomicsঅ্যাটোমিকসSharedArrayBuffer sync primitives.
Binary DataArrayBuffer, DataView, TypedArrays(same usage)(same usage)Byte buffers & typed views.

Items without a Banglish or Bangla cell mean the English name is typically used as‑is (or variants are pending).


Conventions & Interop

  • One file, one style: pick English, Bangla, or Banglish names in a given file.
  • Strict comparisons: prefer === / !==.
  • Modules: names work the same inside ESM/CJS.
  • Console shortcuts: ছাপাও/দেখাও/লিখো/প্রিন্ট/print route to console.log(...).

Global Values & Functions

// মান
কনসোল.লগ(অসংজ্ঞায়িত, সংখ্যা_নয়, অসীম);

// ফাংশন
কনসোল.লগ(সসীম_কি(10), সংখ্যা_নয়_কি(সংখ্যা_নয়));
কনসোল.লগ(পূর্ণসংখ্যায়_রূপান্তর("42", 10), ভগ্নাংশে_রূপান্তর("3.14"));
কনসোল.লগ(ইউআরআই_এনকোড("https://ex.com?q=হ্যাঁ"));
ক্ষুদ্র_কাজের_সারি(() => কনসোল.লগ("মাইক্রোটাস্ক চালু"));

Core Objects (snapshot)

  • Array / তালিকা / Talika — create arrays, map/filter/reduce, search (includes, find), order (sort, reverse), slice/splice.
  • Object / বস্তু / Bostu — create (তৈরি), inspect (চাবিগুলি/মানগুলি/জোড়াগুলি), define properties, assign, seal/freeze.
  • String / অক্ষরমালা / Okkhoromala — search (includes, search), extract (slice, substring), modify (replace, padStart), case.
  • Number / সংখ্যা / Sonkha — constants (MAX_VALUE, …), checks (isFinite), parse/format.
  • Function / নির্মাতা_ফাংশন / NirmataFunctionnew Function(...), call/apply/bind helpers available by name.

Collections & Iteration

  • Map / মানচিত্র / Manchitro — key→value of any type; iterate keys/values/entries.
  • Set / সমষ্টি / Somoshti — unique values; iterate values.
  • WeakMap / দুর্বল_মানচিত্র / DurbolManchitro — object keys; not iterable.
  • WeakSet / দুর্বল_সমষ্টি / DurbolSomoshti — object values; not iterable.
// Bangla
const মানচিত্র১ = new মানচিত্র();
মানচিত্র১.স্থাপন("a", 1);
ছাপাও(মানচিত্র১.গ্রহন("a")); // 1

const সমষ্টি১ = new সমষ্টি();
সমষ্টি১.যোগ(1); সমষ্টি১.যোগ(1);
ছাপাও(সমষ্টি১.আকার); // 1

Text & Regex

  • RegExp / রেজেক্স / RegExপরীক্ষা, কার্যকর, integrate with string match/replace/search/split.
  • JSON / জেসন / Jesonবিশ্লেষণ (parse), অক্ষরায়ন (stringify).
const r = new রেজেক্স("a+", "g");
ছাপাও(r.পরীক্ষা("baaa")); // true

const obj = জেসন.বিশ্লেষণ('{"x":1}');
ছাপাও(জেসন.অক্ষরায়ন(obj)); // {"x":1}

Numbers, Math, Date

  • Math / গণিত / Gonit — constants (pi, e) and functions (lomb/hypot, random, sqrt, …).
  • Date / তারিখ / Tarikh — getters/setters (local/UTC), to‑string/locale conversions.
ছাপাও(গণিত.লম্ব(3,4)); // 5
const d = new তারিখ();
ছাপাও(d.বছর()); // e.g., 2025

Async & Meta

  • Promise / প্রতিশ্রুতি / Protishruti — chaining via তারপর/ধরো/অবশেষে. Static: সব, দ্রুততম, যেকোনো
  • Proxy / প্রক্সি — intercept get/set/has… (প্রত্যাহারযোগ্য for revocable).
  • Reflect / প্রতিফলন / Protifolon — meta ops: প্রয়োগ/নির্মাণ/গ্রহন/স্থাপন/নিজের_চাবিগুলি
  • Symbol / প্রতীক / Protik — unique keys + well‑known symbols (ইটারেটর, প্রতিস্থাপন, প্রজাতি, …).
  • Atomics / অ্যাটোমিকসযোগ/উপ/এবং/অথবা/এক্সঅর, লোড/স্টোর, অপেক্ষা/অবহিত (SharedArrayBuffer).
const p = new প্রতিশ্রুতি(r => r(42));
p.তারপর(v => ছাপাও(v));

const target = {a:1};
const handler = { get(o,k){ return k in o ? o[k] : "ডিফল্ট"; } };
const px = new প্রক্সি(target, handler);
ছাপাও(px.b); // "ডিফল্ট"

Binary Data (heads‑up)

  • ArrayBuffer / DataView / TypedArrays (e.g., Int8Array, Uint16Array, Float32Array) are available with standard English names today. Bnlang names can follow the same pattern when introduced. Use these for byte‑level work.
const buf = new ArrayBuffer(8);
const view = new DataView(buf);
view.setUint32(0, 0xDEADBEEF);

Best Practices

  • Keep code single‑style per file.
  • Extract complex conditions to helpers; use early returns.
  • Prefer for…of for iterable collections; avoid relying on WeakMap/WeakSet enumeration.
  • For dates/numbers/strings, prefer dedicated methods to manual parsing.