prepen an element js

JavaScript
// prepend span to a div 
document.createElement("div").prepend(span);
Source

Also in JavaScript: