Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Please help me understand how and when a value is being passed to the resultObject in this code.

mr1971mr1971 Trinidad and TobagoMember Posts: 1

var DATES=(function(module){
module.getDates = function(resultObject){

    var dt = new Date();
    var amtDates = document.getElementById('numDates');

    for(i=1;i<8;i++){
        dt.setDate(dt.getDate() + i);

        resultObject.prepend(dt + '<br>');
    }
}
alert('hi');
return module;

}(DATES || {}));

Sign In or Register to comment.