4 ms·
The right way is this :) Array.prototype.forEach.call(document.getElementsByTagName('p'), function(el) { el.innerHTML = 'Hello.'; });
by v413 14y ago
The right way is this :)
Array.prototype.forEach.call(document.getElementsByTagName('p'), function(el) {
el.innerHTML = 'Hello.';
});
- dasil003 14y agoI like how the end of that statement contains both a winking crooked-smile smiley next to black-eyed frown smiley.