Array.prototype.joinintermediateconst items = ['<li>one</li>', '<li>two</li>', '<li>three</li>']
items.join('\n') // β HTML list content joined with newlinesUse join() to assemble HTML snippets from an array of strings.
join() is handy for generating HTML markup by wrapping elements and joining them with a newline or other separator.
Challenge: Implement createList(items) that wraps each item in <li> tags and joins them with '\n'.
createList(['apples', 'bananas']) // β '<li>apples</li>\n<li>bananas</li>'