DEV Community

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

Collapse
 
thebearingedge profile image
Tim Davis • Edited

Did you teach them about eval, with and other old stuff as well?

that's not really what this is about.

I mean I get that you want to teach old stuff for context, but you should be very clear about avoiding var.

I've yet to hear any real argument for this.

Babel no longer does those transformation from let and const to var unless you explicitly configure it to do so. Go and check the Babel REPL.

I addressed this already.

I agree we should know about var, but one thing is knowing about it and other is actually using it.

My point is that you don't know something unless you have used it.