Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14
Chapter 5

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

PropertyDetail
High-level languageAbstracts away low-level machine details, making it accessible.
Runs in all browsersThe only programming language that runs natively in all major web browsers — essential for front-end development.
Embedded in HTMLCan be embedded directly into HTML documents, or referenced via external .js files.
Dynamic & interactiveResponds 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-sideServer-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 of
document.("Hello, world!");
</script>
</body>
</html>