This is my open poem for the JavaScript var
:
![]()
Wassim Chegham π@manekinekko
Once upon a time, we had the weak var,
Coz var wasn't block-scoped,
Then, ES6 gave us the let superstar,
The var was then decried.
This was funnily bizarre,
Coz, the let could be reassigned.
Then, const started a war,
But its immutability couldn't be maintained,
I miss you var.16:25 PM - 23 Dec 2019
Top comments (14)
Nah - good riddance
var
. Long livelet
&const
;)They should have made var behave like let and just add const. Or make everything immutable by default. I dislike the whole 3 variable assignment keywords, I'd welcome the trillions of breaking changes.
I understand the feeling, but they probably didn't do it this way to avoid breaking backwards compatibility.
They should do it right from the beginning.Nowdays even
const
is considered as a mistake πConstant complaining from the js community. π
Hindsight is 20/20
Far enough.
That was an unhappy statement, at least I learned a new word. thanks π¬
Not saying you're wrong, just that it's not trivial :)
Ahh 2020 the only year I can make jokes about my vision.
Sadly a time machine written in early JavaScript probably wouldn't work very well π₯³ Merry Christmas
we should make a movie about it.
So like a Marvel movie? Or should I say.. Varvel? I will see myself out.
varpider man.
You should make it a song π