Passing Nodes to template literal & rendering it?
I have a function returning a template literal: function generateStuff(nodes) { const output = `<ul>${nodes}</ul>`; return document.body.innerHTML = output; } nodes is an array of <li> elements made with createElement and then added to nodes via appendChild. Is there a way of render a list with generateStuff(nodes)? Right now all it returns is <ul>[object NodeList]</ul>… Read More Passing Nodes to template literal & rendering it?