Mistakes On Chain Assignment In javascript
One common mistake that I see developers do is exposing a variable to the Global object in chain assignment.
first I let’s see how can you expose a variable to the Global object by accident.
function test(){
a =12; // var is missing
return a;
}
test();
By missing the keyword var even though variable a is inside of the function but [...]




If you like what we do, please don't hestitate and subscribe to our