How to add new lines to console and DOM output in JavaScript

How to add new lines to console and DOM output in JavaScript