function createList(items) {
	return items.map((item) => {
		
		return $(`
			<li>
				${item}
			</li>
`)
	})
}

$('body').append(createList(['ovo', 'pão']));

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js