Skip to main content

Introduction to JavaScript

Learn Introduction to JavaScript (JavaScript Fundamentals, JavaScript) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

What is JavaScript? • JavaScript is a lightweight, interpreted (JIT-compiled) programming language that runs in every web browser and, via Node.js, on the server too. • It is dynamically typed - variable types are determined at runtime, not declared upfront. • JavaScript is single-threaded but achieves concurrency through an event loop and asynchronous callbacks, promises, and async/await. • Three ways to declare variables: var (function-scoped, legacy), let (block-scoped, reassignable), const (block-scoped, cannot be reassigned).

More lessons in JavaScript Fundamentals