I'm talking about simple code structure.
You need a function.
Do you put it in a var or not.
I have nothing against closures or namespaces or object declaration or many of the million other things you can twist objects in js to do.
What I hate is this:
var checkValid = function(item) { return item!= blah; }
function checkValid(item) { //blah }
I'm talking about simple code structure.
You need a function.
Do you put it in a var or not.
I have nothing against closures or namespaces or object declaration or many of the million other things you can twist objects in js to do.
What I hate is this:
When it should be: Stop accusing me of a position you've made up in your head.