javascript create element in a new line

JavaScript
var br = document.createElement("br");
element.appendChild(br);
Source

Also in JavaScript: