© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Tiger Abrodi
Obsessed with crafting software.
In this article, I want to discuss why I prefer const over let when declaring variables in JavaScript. Truth about const Variables declared with const often come across as being immutable. Now, if you have written JavaScript for a while, you know tha...
Ákos Kőműves
Full-Stack Developer and Writer
This topic is strange to me, probably because, by default, I write const. I don't know why. 😄
There's also a linter rule that fixes all your unnecessary let usages eslint.org/docs/latest/rules/prefer-const.
Thilakmani
Hello Readers
Nice Point
Lucas Gazzola
FrontEnd Developer
Great article. It makes a point. And always remember, don't use var anymore.
fosho, the ones ive seen using var in today's age are those that have like 15+ yrs of experience and don't code in JS that often lmao
Muphet
let and const have block scope, var doesn't. there still are cases that you need to pass variables out of blocks
Maxi Contieri
Software Engineer
Reassignments are wrong, they are a code smell, and they aren't good to write, avoid them whenever you can.
Exactly!
I had to get it clear haha
let just be confusing stuff, making you think reassignments happen everywhere
Ákos Kőműves
Full-Stack Developer and Writer
This topic is strange to me, probably because, by default, I write const. I don't know why. 😄
There's also a linter rule that fixes all your unnecessary let usages eslint.org/docs/latest/rules/prefer-const.