template & javascript questions
Hey, just a few questions:
1) with template tags, other than
2) with template tags, what does
3) what is the difference between
4) what is the main use for
Thanks in advance.
1) with template tags, other than
template.content.cloneNode(true), is there anything else that you need to get familiar with regarding those? mdn just seems to show how to make the tag in html and that snippet there. 2) with template tags, what does
shadowrootmode do? and why is it useful?3) what is the difference between
.innerText and .textContent other than improved performance with .textContent, and what use does each one have?4) what is the main use for
.append? Thanks in advance.
