{"ScriptPreparationCode":"const container1 = document.querySelector(\u0027#container1\u0027);\r\nconst container2 = document.querySelector(\u0027#container2\u0027);\r\nfor (let i=0; i\u003C300; i\u002B\u002B) {\r\n container1.appendChild(document.createElement(\u0027p\u0027));\r\n container2.appendChild(document.createElement(\u0027p\u0027));\r\n}","TestCases":[{"Name":"replaceChildren","Code":"container1.replaceChildren(...container2.children);","IsDeferred":false},{"Name":"remove and insert","Code":"while (container1.firstChild)\r\n container1.removeChild(container1.firstChild);\r\nwhile (container2.firstChild)\r\n container1.appendChild(container2.firstChild);\r\n","IsDeferred":false},{"Name":"remove and replace","Code":"while (container1.firstChild)\r\n container1.removeChild(container1.firstChild);\r\ncontainer1.replaceChildren(...container2.children);\r\n","IsDeferred":false}]}