Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumHTMLtemplate elementSingle-choice MCQ

A developer clones template content and inserts it, but the original `<template>`'s nodes disappear from where they expected. Which approach correctly produces an insertable copy without emptying the template?

const tpl = document.querySelector('template'); // option logic to insert a copy into <ul> const ul = document.querySelector('ul');