3 ms·
How does var/hoisting get in the way of that, or at least, that particular, construct? FWIW, that would also be a nice "for" loop :-) var el for (
by Roboprog 10y ago
How does var/hoisting get in the way of that, or at least, that particular, construct?
FWIW, that would also be a nice "for" loop :-)
var el
for (
el = document.getElement... ;
el ;
el = el.parentElement
) {
// do something
}