4 ms·
console.log(output); needs to be last line outside each() :) Or move var content = "" inside each()
by hippich 12y ago
console.log(output);
needs to be last line outside each() :) Or move var content = "" inside each()
- bramgg 12y agoWhoops, you're right, console.log was supposed to be at the very bottom of the script. By default most browser consoles scroll you to the bottom of the output, so I just read the first half scrolling up and never noticed. No matter, amarraja's version is much better.