๐ฅ 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!
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!");
Or declared a variable like this:
hinglish.banao("naam", "Prasoon");
๐ก 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>
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>
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
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"])
Run it:
python hinglish_cdn.py
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
๐ Learn Hinglish
- ๐ Full Tutorial
- ๐ Modules
๐ ๏ธ 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)