CodeNewbie Community

loading...

Discussion on: What's the difference between "let" and "const" in JavaScript?

Collapse
yechielk profile image
Yechiel (he/him)

let is like writing your name with a pencil or washable marker; it can be changed or erased later.

const is like writing it in permanent marker. Once you write it it has to stay the same forever.