KP
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. Eg: cars = 3 ; // NO! var cars = 3 ; // YES
CommentThreadDec 29, 2018[Any language] What are some popular coding bad practices? Answer with code snippets!