Javascript-Random Square (div) cannot be displayed on the page?

beginners follow the code when learning js videos. The effect of the implementation should be to randomly generate small squares on a page.
actual effect of running

but squares have been generated in debugging!

The

code is as follows:

<script >
/*
 * 
 */
(function (window) {
    function Random() {
    }
    Random.prototype.getRandom = function (min,max) {
        return Math.floor(Math.random()*(max-min)+min);
    };
    window.Random=new Random();//window
})(window);

/*
 * 
 */
(function (window) {
    console.log(Random.getRandom(0,5))//
    var map = document.querySelector(".map");//.getElementById
    //
    function Food(width,height,color) {
        this.width=width||20;//
        this.height=height||20;
        this.x=0;//
        this.y=0;//
        this.color=color;
        this.element=document.createElement("div");//
    }
    //
     Food.prototype.init = function(map){
        var div = this.element;//
        div.style.position = "absolute";//;
        div.style.width = this.width + "px";
        div.style.height = this.height + "px";
        div.style.backgroudcolor = this.color;
        map.appendChild(div);//
        this.render(map);
    };
    //
     Food.prototype.render=function(map){
        var x =Random.getRandom(0,map.offsetWidth/this.width)*this.width;//
        var y =Random.getRandom(0,map.offsetHeight/this.height)*this.height;
        this.x=x;
        this.y=y;
        var div = this.element;
        div.style.left = this.x + "px";
        div.style.top = this.y + "px";
    };
    
     var fd = new Food(20,20,"green");
     fd.init(map);
     console.log(fd.x+"--"+fd.y);
     
})(window);
Mar.03,2021

background color setting failed

style.backgroundColor

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35faa-34388.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35faa-34388.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?