re: Don't name your global JavaScript function 'clear' VIEW POST

FULL DISCUSSION
 

You should never need to define a function in the global scope, ever, unless you have a very specific need. This is really, really bad practice.

code of conduct - report abuse