I'm studying for an HTML certification an ran across a syntax like this:
foo.click() += some_other_function; // supposedly to invoke another function
// when the foo HTML element is clicked.
I can't find any information on this. Can this be done in JavaScript?
+=is for summation and string concatenation.foo.click() = foo.click() + some_other_function, and you (obviously) can't assign a value tofoo.click().