DEV Community

Cover image for ๐Ÿ’ฅ Hinglish Programming Language: Code Ka Tadka! ๐Ÿ‡ฎ๐Ÿ‡ณโœจ
Prasoon
Prasoon

Posted on

๐Ÿ’ฅ Hinglish Programming Language: Code Ka Tadka! ๐Ÿ‡ฎ๐Ÿ‡ณโœจ

๐Ÿ’ฅ Hinglish Programming Language: Code Ka Tadka! ๐Ÿ‡ฎ๐Ÿ‡ณโœจ

Tired of writing code that feels too "foreign"? Meet Hinglish โ€” the desi twist your JavaScript journey has been missing!


Hinglish Banner

Namaste Developers! ๐Ÿ™
I'm super excited to introduce you to something close to my heart โ€” Hinglish Programming Language โ€” a language that blends Hindi + English for writing JavaScript-style code in a way that feels natural for us desi devs.

No build tools. No config files. Just plain CDN + some desi magic ๐ŸŒถ๏ธ


๐Ÿš€ Why Hinglish?

Letโ€™s face it โ€” writing console.log, document.querySelector, addEventListener every day can feel like a mouthful.
So I thought... what if we just wrote:

hinglish.likho("Namaste Duniya!");
Enter fullscreen mode Exit fullscreen mode

Or declared a variable like this:

hinglish.banao("naam", "Prasoon");
Enter fullscreen mode Exit fullscreen mode

๐Ÿ’ก Thatโ€™s Hinglish. Itโ€™s fun, itโ€™s easy, and it feels like home. ๐Ÿ‡ฎ๐Ÿ‡ณ


๐Ÿงฉ Hinglish Features (CDN Runtime)

Using it is as simple as:

<script src="https://pjdeveloper896.github.io/Hinglish-language/dist/hinglish.js"></script>
Enter fullscreen mode Exit fullscreen mode

You can now write Hinglish code in your <script> tag directly โ€” no build step, just plug and play!

๐Ÿ”น Core API

Command Description
hinglish.likho(cheez) Console log (print to screen)
hinglish.banao(naam, value) Declare a variable
hinglish.badlo(naam, value) Update the variable
hinglish.lelo(naam) Get the value of a variable
hinglish.agar(shart, haanFn, nahiFn) If condition (agar = if)
hinglish.ghoom(start, end, step, fn) Loop with start, end, and step (ghoom = loop)

๐Ÿ”น DOM Manipulation

Command Description
dom.addKaro(html, tag, id?) Add elements dynamically
dom.likhoInner(selector, text) Set inner text of an element
dom.setAttr(selector, attr, value) Set attribute on a DOM element
dom.getAttr(selector, attr) Get attribute from a DOM element
dom.hatao(selector) Remove an element from the DOM

๐Ÿ”น Events Handling

Command Description
events.lagaEvent(selector, event, fn) Attach an event listener to one element
events.lagaSabko(selector, event, fn) Attach event to all matching elements

๐Ÿ’ป Example: Ginti Counter App

<button id="gintiBtn">Ginti Badhao</button>
<div id="gintiValue">Ginti: 0</div>

<script src="https://pjdeveloper896.github.io/Hinglish-language/dist/hinglish.js"></script>
<script>
  hinglish.banao("ginti", 0);

  events.lagaEvent("#gintiBtn", "click", () => {
    const abhi = hinglish.lelo("ginti");
    hinglish.badlo("ginti", abhi + 1);
    dom.likhoInner("#gintiValue", "Ginti: " + hinglish.lelo("ginti"));
  });
</script>
Enter fullscreen mode Exit fullscreen mode

Thatโ€™s it! ๐ŸŽ‰ You just wrote a counter app in Hinglish. Simple, no?


๐Ÿ Hinglish CLI (Python Version)

Want to try Hinglish on your terminal (Termux/Linux/Windows)?

Just install Python and requests, and create this script:

pip install requests
Enter fullscreen mode Exit fullscreen mode

Then:

# hinglish_cdn.py
import requests, subprocess

url = 'https://pjdeveloper896.github.io/Hinglish-language/dist/Hinglish.py'
code = requests.get(url).text
with open('Hinglish.py', 'w') as f: f.write(code)
subprocess.run(["python", "Hinglish.py", "--console"])
Enter fullscreen mode Exit fullscreen mode

Run it:

python hinglish_cdn.py
Enter fullscreen mode Exit fullscreen mode

Boom. Hinglish, now in CLI! ๐Ÿ


๐Ÿง  Hinglish Syntax Highlights

# agar (if)
agar true
# Output: Condition met!

# ghoom (loop)
ghoom 5
# Output: Loop 1...5

# meraNaam (variable usage)
meraNaam
# Output: Variable: meraNaam
Enter fullscreen mode Exit fullscreen mode

๐Ÿ“š Learn Hinglish


๐Ÿ› ๏ธ Contribute

Weโ€™re just getting started. If you want to:

  • Add more desi commands (rukja, chaluRakh, etc. ๐Ÿ˜„)
  • Add modules (maths, strings, API)
  • Improve performance

๐Ÿ‘‰ PRs are always welcome: GitHub Repo


โค๏ธ Final Thoughts

Hinglish is more than a programming language โ€” itโ€™s a movement to make code feel friendly, fun, and familiar.

Whether youโ€™re a beginner whoโ€™s scared of curly braces or a pro who just wants to chill with some fun syntax โ€” Hinglish is for you.


Let me know what you think!
Would you like a VSCode extension, online playground, or Codepen support next?

๐Ÿ‘‡ Drop your thoughts in the comments!


Follow me @pjdeveloper896 for more spicy dev tools ๐ŸŒถ๏ธ


#javascript #webdev #hinglish #cdn #programminglanguage #python #opensource #fun


Top comments (0)