© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Kenneth Padilla
Language: JavaScript
Not defining variables using var is a bad practice. These variables will become part of the global scope. You'll not get warnings.
var
Eg:
cars = 3; // NO! var cars = 3; // YES
j
stuff ;)
The why is important
ZivKa
Code Lover
var is so ES5.. You should prefer let or const