bash TV
let vs const in JavaScript #javascript
What is a variable? Is it a box? π¦ JS Class Ep 01: let vs const A variable is a box with a name on it. let: you can put a new value in the box later. const: you fill the box once. Try to change it and JavaScript throws an error. Rule: use const when you can, let when you have to. Save this and follow for Ep 02: Operators π #javascript #learnjavascript #coding #programming #webdevelopment #codingforbeginners #developers #learntocode #techreels #abautomationhub




Join the discussion
Have something to add?
Sign in to reply, follow this thread, and earn XP when your answer helps someone.