{"size": 571, "ext": "js", "max_stars_repo_path": "day-29/slove.js", "max_stars_repo_name": "WASHINPI/100-days-of-code", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "day-29/slove.js", "max_issues_repo_name": "WASHINPI/100-days-of-code", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "day-29/slove.js", "max_forks_repo_name": "WASHINPI/100-days-of-code", "max_forks_repo_forks_event_min_datetime": "2020-11-21T23:41:35.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-21T23:41:35.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 19.0333333333, "max_line_length": 56, "alphanum_fraction": 0.5656742557}
// Calculator: Coin Combination
//https://www.codewars.com/kata/564d0490e96393fc5c000029
var coinCombo = function(cents) {
    let arr=[0,0,0,0];
    let data=cents;

    if(parseInt(data/25)>0){
        arr[3]=parseInt(data/25)
        data=data%25;
    }

    if(parseInt(data/10)>0){
        arr[2]=parseInt(data/10)
        data=data%10;
    }

    if(parseInt(data/5)>0){
        arr[1]=parseInt(data/5)
        data=data%5;
    }

    if(parseInt(data/1)>0){
        arr[0]=parseInt(data/1)
        data=data%1;
    }

    return arr;
}

console.log(coinCombo(31));