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
letlike "let me change it later" andconstlike "constant, don't touch!"
Comments
Post a Comment