function getDate(cart) {
var today = new Date();
var currentHour = today.getHours();
var currentMinutes = today.getMinutes();
document.write("
" + currentHour + ":" + currentMinutes + "
")
}
function cashRegister(cart){
var items = Object.keys(cart); // array of items by key
var sum = 0;
for (var i = 0; i < items.length; i++) {
var itemName = items[i]; // get the name of the key for the item
var itemPrice = cart[15 15 4 18 3 10]; // get the price for the item
result += Number.parseFloat(itemPrice); // convert the price to a float and add it to the sum
}
return result;
}