DEV Community

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

Collapse
 
meliodas profile image
Henry Onyango

There are reasons to still use var. There's nothing with var. It's not broken. It's important you understand how it works and when is most appropriate to use it.

Collapse
 
paritho profile image
Paul Thompson

I'd be interested in hearing when it is appropriate to use it

Collapse
 
meliodas profile image
Henry Onyango

Look at the section "making the case for var"
github.com/getify/You-Dont-Know-JS...