A Friendly Chat That Helped Me Understand JavaScript – Introduction to JavaScript
Here’s a short fictional story of two friends, Krish and Suman. Where Suman ask his doubts as questions and Krish answers to those questions.
What is JavaScript and what it does?
JavaScript is a high-level, interpreted programming language. It allows you to write logic that runs directly inside your browser and is key to building interactive web applications.
High-level means you don’t have to worry about memory management, registers, or hardware-related tasks. The language abstracts those low-level details for you.
Interpreted means the browser reads and executes your code line-by-line, without compiling it into machine code beforehand.
Where is JavaScript actually used today?
JavaScript is used everywhere from personal portfolio websites to large-scale applications by global companies. For example:
Why was JavaScript even invented?
Back in 1995, websites were static. In simple terms, users could read information, but websites but couldn’t respond to user actions like clicks or inputs.
To solve this, Netscape wanted a lightweight scripting language that could:
That’s when Brendan Eich created JavaScript in 1995 for Netscape 2 browser. He created JS in 10 days.
Is JavaScript related to Java?
They both are different. The name similarity was a marketing move during Java's popularity.
Java is statically typed and used in backend systems, mobile apps, and large-scale software. JavaScript is dynamically typed and primarily used for building dynamic web applications.
What is ECMAScript? How ECMAScript is different from JavaScript?
JavaScript is the language we write. ECMAScript is the specification that defines how JavaScript should behave.
Think of ECMAScript as the rulebook. JavaScript is the game we play using those rules. So when browsers implement JavaScript, they follow the ECMAScript specification.
And what’s ISO’s role in all this?
ISO (International Organization for Standardization) ensures global consistency in technical standards.
This ensures that JavaScript behaves consistently across browsers and platforms around the globe.
Let's Practice together
Practice in the browser console! we can also use it like a calculator to perform simple additions, multiplications and to print some message on console.
console.log("Congrats on starting your JavaScript learning journey");
console.log("Happy Learning!!!");
console.log("Add 2 and 4 :", 2+4);
Reference :
Your Turn