I have the following array:
var sherbert = [{
flavor: "orange mango",
cost: 2
},{
flavor: "lemon lime",
cost: 4
}];
Using jQuery how can I create a function that writes these as LI items like:
<li>flavor : orange mango<span>cost : 2</span></li>
<li>flavor : lemon lime<span>cost : 4</span></li>