JavaScript (JS) is a lightweight, interpreted (or JIT-compiled) language that adds interactivity to web pages: form validation, animations, dynamic content updates and full single-page applications.
- Dynamically typed — variables don't have fixed types
- Runs in every browser without installation
- Multi-paradigm: procedural, object-oriented and functional
- Standardized as ECMAScript (current spec: ES2024+)
- Also runs server-side via Node.js and Deno
console.log("Hello, JavaScript!");
// Runs directly in any browser console or Node.jsTip
Interviewers often ask 'is JavaScript the same as Java?' — no relation beyond the name; be ready to say that in one line.