DEV Community

Discussion on: 3 reasons to use 'var' in JavaScript

 
koire profile image
Koire • Edited

We don't always write var but for IE but we definitely transpile it
I still have projects that warn you you need IE 5 or later for it to work correctly.

Edit
There is the case where someone might come in and say "var bad" and use replace to turn them all to let or const and break everything in a legacy system because it was being funky