Can a series of unique divs be created using a for loop?
for (var i = 0, n = 4; i < n; i++) {
var divTag = document.createElement("div");
divTag.id = "div"i;
divTag.innerHTML = Date();
document.body.appendChild(divTag);
}
Is it expected that this script would generate 4 individual DIVs with the current date? Currently, it does not output anything.