Can you please take a look at this code and let me know wha I am not able to create checkbox from the array of items
var items: ['item1', 'item2', 'item3', 'item4', 'item5', 'item6'];
for (i = 0; i < items.length; i++) {
$('#checks').appendTo('<input type="checkbox">');
}
.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="checks"> </div>