“Bhai-Lang” A JavaScript Based Toy Programming Language

A new toy programming language created by two Indian developers written in Typescript.

A new programming language “Bhai-Lang” is a toy programming language was written in Typescript and make programming inspired by the “bro talk speaking in Hindi”. This toy programming language was created by two Indian developers Aniket Singh from Amazon and Rishabh Tripathi from Groww.  

“Bhai” is known as brother in Hindi and its written as typescript and which is combination of Hindi words and hi, bye among other English words. “Bhai-Lang” has its own syntax, similar with Java and other programming g languages.

According to its official website, the code starts with “Hi Bhai” and the syntax ends with “Bye Bhai” and all the code written outside this tag will be ignored. Whenever the developer makes a mistake in code the prompt shows “Arre Bhai Bhai Bhai” looks like the popular meme we got a year before. Variables can be declared using “bhai ye hai”.

hi bhai
 bol bhai "Hello World";
  bhai ye hai a = 3;
  bhai ye hai b = 0;

  jab tak bhai (b < 5) {
    bol bhai b;

    agar bhai (b == a) {
      bol bhai "b is equal to a";
    } nahi to bhai (b == 0) {
      bol bhai "b is equal to zero";

    b += 1;

bye bhai

On a GitHub page of “Bhai-Lang”, a user can see the entire directory of how to use Variables, Types, Built-ins, Conditionals and Loops of the programming language.  The toy programming language has its official website to accessed the language and its source code

According to its creators, the language is a result of an inside joke and being very popular on the internet.

Mahesh Vyas

I am Engineer and Web Developer. I made to find the better solutions for our engineering community, help and provide the information about engineering and technology. Follow me on Twitter and Instagram.

Leave a Reply

Your email address will not be published. Required fields are marked *