Skip to main content

Posts

Featured Post

JavaScript Roadmap — Day 3: Variables — var, let, and const

  JavaScript · Day 3 of 180 Beginner Phase Variables — var, let, and const Variables are containers that store data. Understanding var, let, and const is the foundation of writing clean, bug-free JavaScript. Day 3 / 180 Beginner Phase Every program needs to store data — names, numbers, scores, prices. In JavaScript, we use variables to store this data. There are three ways to create variables: var (old), let (modern), and const (constant). Choosing the right one prevents bugs and makes your code predictable. What is a Variable? A variable is like a labeled box — you put data inside it and give it a name so you can find it later. JavaScript — Variables // Three ways to declare variables var name = "Waheed" ; // old way let age = 22 ; // modern — can change const country = "Pakistan" ; // constant — cannot change console. log (name); // Waheed console....

Latest Posts

JavaScript Roadmap — Day 2: Setting Up Your Development Environment

JavaScript Closures — Complete Guide for Beginners

JavaScript Roadmap — Day 1: Introduction to JavaScript

JavaScript Fetch API — Complete Guide for Beginners

JavaScript Error Handling — Complete Guide for Beginners