Pixel Pete saysInsert nodes with append/appendChild, prepend, insertBefore, before/after.
parent.append(node) adds to the end (modern, accepts text and multiple nodes); appendChild is the older single-node version. prepend adds to the start, before/after insert as siblings, and insertBefore(new, ref) places before a reference child. For many inserts, build a DocumentFragment and append once to minimize reflow.
Power-ups you unlock
append/appendChild add to the end
prepend, before, after for other positions
insertBefore(new, ref) for precise placement
Batch with DocumentFragment for performance
Quirks Mode attacks — common mistakes
Inserting hundreds of nodes one at a time
Confusing append (string-friendly) with appendChild
Wrong reference node in insertBefore
Boss battleBuild three list items in a fragment and append them in one operation.