parameters in for loop Javascript : 1. I am working on this project for school. 
But I can not figure out one problem.
I have 2 lines of boxed both colored, but I use a for loop and in the parameters don't work in the for loop. the lines have both different places and different length. So I have this Question how could I use the parameters in the for loop. Just right so i would work everytime.
This is the code i have so far:

2.
    `box('box', 3);
     box('box2, 4);
     function box(id,aantal){ 
        for(var i = 0; i < aantal.length; i++){
        var box = document.createElement("div");
            box.style.height = "175px";
            box.style.width= "175px";
            box.style.borderRadius = "5px";
            box.style.backgroundColor = "#e6e6e6";
            box.style.marginLeft ="25px";
            box.style.marginTop = "-160px";
            box.style.float = "left";
        document.getElementById(id).appendChild(box);
    }
} `