Posts

Showing posts from June, 2025

Roadmap

 Here is a complete JavaScript roadmap from Basic to Advanced , designed for long-term retention and practical usage: 🟢 1. Basics of JavaScript (Beginner Level) Goal: Understand syntax, variables, and basic logic ✅ Topics: What is JavaScript? Adding JS to HTML (inline, internal, external) console.log() and Developer Tools Variables: var , let , const Data Types: String, Number, Boolean, Null, Undefined, Object Operators: Arithmetic, Assignment, Comparison, Logical Comments ( // , /* */ ) 🧠 Memory Trick: Think of let like "let me change it later" and const like "constant, don't touch!" ✅ Practice: Make a simple calculator using prompt() and alert() 🟡 2. Control Structures Goal: Make decisions and loops ✅ Topics: Conditional Statements: if , else , else if , switch Loops: for , while , do...while break and continue 💡 Real-Life Analogy: if...else is like traffic signals. for loop is like g...

Day 3: Data Types: String, Number, Boolean, Null, Undefined, Object

  // Numbers: let length = 16; let weight = 7.5; // Strings: let color = "Yellow"; let lastName = "Johnson"; // Booleans let x = true; let y = false; // Object: const person = {firstName:"John", lastName:"Doe"}; // Array object: const cars = ["Saab", "Volvo", "BMW"]; // Date object: const date = new Date("2022-03-25");

Day 2: Operators: Arithmetic, Assignment, Comparison, Logical

 T ype of Operators Arithmetic Operator Assignment Operator Comparison Operator String Operator Logical Operator Bitwise Operator Ternary Operator Type Operator -> 1) Arithmetic Operator   +) Plus -) Minus *)Multiply /) Division (Top of Result) %) Reminder(Bottom of Result)  **) Exponential ( ex. 5**2 = 5*5 = 25) ++) Increment --) Decrement 2)  Assignment Operator = += -= *= /= **= Shift Assignment Operator >>= <<= >>>= Bitwise Assignment Operator &= ^= |= Logical Assignment Operator &&= ||= ??= const readline = require("readline").createInterface({   input: process.stdin,   output: process.stdout, }); readline.question("Enter first number: ", (num1) => {   readline.question("Enter second number: ", (num2) => {     readline.question("Enter operator (+, -, *, /): ", (operator) => {       const a = parseFloat(num1);       const b = parseFloat(num2);       ...

Day 1: Variables: var, let, const

hi everyone, this is notes of javascript programming language. here i write basic to advanced notes and roadmap and guide step-by-step. Environment Use This Function Browser prompt() , alert() Node.js readline module We convert the string to a number using parseFloat() so we can do math. variable : var: global scoped scoped let: block scoped const: block scoped 🧠 Memory Trick: Think of let like "let me change it later" and const like "constant, don't touch!"