jquery append first code example
Example 1: prepend element jquery
$( ".inner" ).prepend( "<p>Test</p>" );
Example 2: append to top javascript
$('div').prepend('<p>Bla bla bla');
Example 3: appendBefore
let insertedNode = parentNode.insertBefore(newNode, referenceNode)