What anti-patterns exist for JavaScript? [closed]
Language: Namespace polluting by creating a large footprint of variables in the global context. Binding event handlers in the form ‘foo.onclick = myFunc’ (inextensible, should be using attachEvent/addEventListener). Using eval in almost any non-JSON context Almost every use of document.write (use the DOM methods like document.createElement) Prototyping against the Object object (BOOM!) A small one … Read more