🌐 Introduction to JavaScript
Last Updated: 01 Oct 2025
- JavaScript (JS) is a programming language of the web.
- It helps us make websites interactive (dynamic), not just static like HTML & CSS.
- Runs inside the browser (like Chrome, Firefox, Edge).
- Can also run outside browser using Node.js.
- JavaScript statement is terminated by semicolon
;.
Hinglish Tip 🗣 : "JavaScript website ko zinda banata hai – jahan HTML structure deta hai, CSS design deta hai, aur JS usse interactive banata hai."
🕰 Short History of JavaScript
- 1995 → Created by Brendan Eich in just 10 days while working at Netscape.
- Original name: Mocha, then renamed to LiveScript, and finally JavaScript.
- 1996 → Microsoft made its own version called JScript for Internet Explorer.
- 1997 → Standardized by ECMA International → Official name ECMAScript (ES).
- 2009 → Node.js introduced → JS could now run on servers also.
- 2015 → Big update: ES6 (ECMAScript 2015) introduced modern features (let, const, arrow functions, classes, etc.).
- Today → JavaScript is everywhere: Web, Mobile, Desktop, AI, and IoT.
Hinglish Tip 🗣 : "JS pehle sirf browser ke liye bana tha, lekin aaj ke time me backend, mobile apps, aur har jagah use hota hai."
✏ Features of JavaScript
- Easy to Learn – Simple syntax like English.
- Client-side Language – Runs in browser directly.
- Dynamic – You can update content without refreshing.
- Cross-platform – Works on Windows, Mac, Linux, Mobile.
- Event-driven – Reacts to clicks, typing, scrolling, etc.
💡 Where is JavaScript Used?
- Web Development (Frontend + Backend)
- Mobile Apps (React Native, Ionic)
- Desktop Apps (Electron.js)
- Game Development (Phaser.js, Babylon.js)
- Server-side (Node.js)