Episode 2 of 46

What the Hell is JavaScript Anyway?

Understand what JavaScript is, where it runs, and why it is the most important language for the web.

JavaScript is a high-level, interpreted programming language that was originally created to make web pages interactive. Today it is one of the most widely used languages in the world.

A Brief History

JavaScript was created by Brendan Eich in 1995 in just 10 days while working at Netscape. Despite the name, JavaScript has nothing to do with Java — the name was a marketing decision.

What Can JavaScript Do?

  • In the browser — manipulate HTML and CSS, respond to user clicks, validate forms, create animations, fetch data from servers
  • On the server — with Node.js, JavaScript can build APIs, access databases, and handle server logic
  • Mobile apps — frameworks like React Native let you build iOS and Android apps with JavaScript
  • Desktop apps — Electron lets you build desktop apps (VS Code is built with it!)

HTML, CSS, and JavaScript

Think of a web page as a person:

  • HTML — the skeleton (structure and content)
  • CSS — the appearance (clothes, skin, style)
  • JavaScript — the brain and muscles (behaviour and interaction)

Why Learn JavaScript?

  • It runs in every browser — no installation needed
  • It's the only language that runs natively in web browsers
  • Huge ecosystem of libraries and frameworks (React, Vue, Angular)
  • One of the most in-demand skills for developers