<div id="dataTable">
<button onclick="show()">Print data</button>
<ul id="hcplist">
</ul>
</div>
I need to loop through this
let hcpdata = [{ "name": "David", "hcp": 54 }, { "name": "Jack", "hcp": 5 }, { "name": "Hanna", "hcp": 20 }];
Make <li>
items in that loop, and output in a <ul>
(hcplist
) without jQuery or other libraries — items like "David 54", "Jack 5", etc.
- using plain Javascript](https://stackoverflow.com/questions/30199990/convert-json-file-in-ulli-using-plain-javascript) and [Create a
– adiga Feb 05 '19 at 17:03and fill it based on a passed array](https://stackoverflow.com/questions/11128700) and [how to append an array inside a ul in javascript?](https://stackoverflow.com/questions/53561590/) and [Never talking about populate a normal view](https://stackoverflow.com/questions/54152659)