{"ScriptPreparationCode":"const html = [];\r\nfor(i=0; i\u003C1000; i\u002B\u002B) {\r\n\thtml.push(\u0022\u003Cspan\u003EText\u003C/span\u003E\u0022);\r\n}\r\ndocument.getElementById(\u0022messages\u0022).insertAdjacentHTML(\u0027beforeend\u0027, html)","TestCases":[{"Name":"Remove firstChild","Code":"let list = document.getElementById(\u0022messages\u0022);\r\nwhile (list.firstChild) {\r\n list.removeChild(list.firstChild);\r\n}","IsDeferred":false},{"Name":"Remove lastChild","Code":"let list = document.getElementById(\u0022messages\u0022);\r\nwhile (list.firstChild) {\r\n list.removeChild(list.lastChild);\r\n}","IsDeferred":false},{"Name":"firstChild.remove","Code":"let list = document.getElementById(\u0022messages\u0022);\r\nwhile (list.firstChild) {\r\n list.firstChild.remove();\r\n}","IsDeferred":false},{"Name":"lastChild.remove","Code":"let list = document.getElementById(\u0022messages\u0022);\r\nwhile (list.lastChild) {\r\n list.lastChild.remove();\r\n}","IsDeferred":false},{"Name":"replaceChildren","Code":"let list = document.getElementById(\u0022messages\u0022);\r\nlist.replaceChildren();","IsDeferred":false}]}