JSLint Messages – Bad Assignment

JSLint prompts you with this message when it encounters what it perceives to be a dangerous, or “bad” assignment. For example: document.getElementById(“text”+x) = function(){}; In the above code, we are calling a function, and then attempting to assign it a value. Clearly the case of document.getElementById() nonsense anyway, and will … Continue reading