Modern alternatives to innerHTML and appendChild()

Two methods making DOM manipulation less verbose.

append() is a convenient alternative to appendChild().

Like appendChild(), append() appends DOM nodes to an element, but unlike appendChild(), append() accepts multiple arguments of any types. The arguments that are not nodes are converted into strings that in turn…