DEV Community

Discussion on: When is the last time you used `var`?

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€

In the console all the time.

Collapse
 
mzaini30 profile image
Zen

Wow

Collapse
 
nombrekeff profile image
Keff

Definitely, same here, though it seems chrome 80 has added the ability to redefine let variables

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€

Good to know, is this only in console or has spec chqnged

Thread Thread
 
nombrekeff profile image
Keff

I think it's just in the console, they also allow class to be redefined. You can check the release notes if you're interested in learning more: developers.google.com/web/updates/...

Collapse
 
daniel13rady profile image
Daniel Brady

Haha if I'm in a console, I don't care about binding semantics and so I usually don't use a declarator at all! A simple x = 42 is sufficient, in that context.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

So Python.

Collapse
 
mzaini30 profile image
Zen

I'm too πŸ˜‚

Collapse
 
brettimus profile image
Boots

same here! it feels so freeing. like running through a field

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€

For me it's just a good habit