289 views

Variables

Sanyam Kansal
2/3/2026

JavaScript Notes

JavaScript Logo


What is JavaScript?

JavaScript is a high-level, interpreted programming language used to create interactive and dynamic web applications.
It runs in browsers and on servers using environments like Node.js.


Features of JavaScript

  • Lightweight and interpreted
  • Dynamically typed
  • Event-driven
  • Prototype-based object-oriented
  • Single-threaded with asynchronous support
  • Runs on client-side and server-side

JavaScript Execution Model

  1. Parsing of code
  2. Creation of execution context
  3. Code execution

Variables

Declaration Keywords

var name = "Amber"; // function scoped (avoid) let age = 22; // block scoped const isDev = true; // block scoped, cannot be reassigned
Note image 1