Writing HTML in JavaScript is a pain. In older applications a developer may use .innerHTML
throughout the application to update the content of a webpage.
Here are some bad examples:
// Using jQuery:
$('<div>Hello World</div>').appendTo('body')
// Using JavaScript