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!"

Comments

Popular posts from this blog

Roadmap

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