JavaScript Origin & Overview
Where JavaScript came from, what it is, and how it powers both the client and the server.
JavaScript Origin
- Created in just 10 days by Brendan Eich while working at Netscape Communications in 1995.
- First appeared in 1995 as a scripting language for web pages, initially called LiveScript before being renamed.
- ECMAScript defines the rules and guidelines. JavaScript is an implementation of ECMAScript, enabling programmatic access to computational objects.
- Other implementations: JavaScript by Netscape, JScript by Microsoft, and ActionScript by Adobe.
“Learning JavaScript used to mean you were not a serious software developer. Today, not learning JavaScript means the same thing.” — Tim O'Reilly, founder of O'Reilly Media
Overview of JavaScript
| Property | Detail |
|---|---|
| High-level language | Abstracts away low-level machine details, making it accessible. |
| Runs in all browsers | The only programming language that runs natively in all major web browsers — essential for front-end development. |
| Embedded in HTML | Can be embedded directly into HTML documents, or referenced via external .js files. |
| Dynamic & interactive | Responds to user input, dynamically updates content and creates animations — without reloading the page. |
JavaScript and Java are related only through their names and some syntax. Java is compiled and statically typed; JavaScript is interpreted and dynamically typed.
Client-Side vs Server-Side
| Client-side | Server-side (Node.js) |
|---|---|
|
Runs inside the user's browser Creates dynamic & interactive pages Responds to user input in real time Validates forms before server submission Updates content without a full page reload Frameworks: React, Angular, Vue.js |
Runs on the web server (via Node.js) Handles complex business logic Interfaces with databases Builds APIs and back-end systems Enables full-stack development Single language across the entire stack |
Activity — complete the code
Complete the code correctly to mark this lesson as complete automatically.
Complete the script: JavaScript is an implementation of the ECMAScript standard.
<!DOCTYPE html><html><head><title>Hello JS</title></head><body><script>// JavaScript is an implementation ofdocument.("Hello, world!");</script></body></html>