DEV Community

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

Collapse
 
sabbakilam profile image
SabbaKilam

I always use var at the browser's console so that I can re-declare and re-assign variables at will, hassle-free, while playing around and testing concepts. Otherwise, I get clobbered with error messages and restrictions.