< ♜
" + arguments[i]+ " ";
}
}
function addThings() {
var total = 0;
for (var i = 0; i < arguments.length; i++){
var num = parseFloat(arguments[i])
if (isNaN(num)) {
throw new Error('Arguments to `add` must be numbers.')
} else {
total += num
}
}
return total
}
function printThings(){
for (var i = 0; i < arguments.length; i++) {
var html = "";
document.getElementById(arguments).innerHTML = html;
}
}
bulletThings(...clothes);
document.getElementById("clothes").innerHTML = html;
var html = "";
total = addThings(...clothes);
document.getElementById("noThings").innerHTML = total;
cloThings
I own things in my closet.