Pages

inserBefore ?

parentOfBeforeNode.insertBefore( nodeToInsert, beforeNode ); 

The mnemonic that we use to remember the order of the arguments is the phrase

“You’re inserting the first element, before the second.”