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" andconst
like "constant, don't touch!"
Comments
Post a Comment