function refreshDoneItemsCounter() {
    let feladatok = todos;
    let counter = 0;
    feladatok.map((item) => {
        if (item.status === true) {
            counter += 1;
        }
    })
    if (counter === 0) {
        doneItemsCounter.innerText = '0';
    } else
        doneItemsCounter.innerText = Math.floor(counter / todos.length * 100);
}
/* frissiti a kesz allapotu task-ok szamat jelzo mezot */
frissiti a kesz allapotu task-ok szamat jelzo mezot
frissiti a kesz allapotu task - ok szamat jelzo mezot
function refreshDoneItemsCounter() {
    let feladatok = todos;
    let counter = 0;
    feladatok.map((item) => {
        if (item.status === true) {
            counter += 1;
        }
    })
    if (counter === 0) {
        doneItemsCounter.innerText = '0';
    } else
        doneItemsCounter.innerText = Math.floor(counter / todos.length * 100);
}
function refreshDoneItemsCounter ( ) { let feladatok = todos ; let counter = 0 ; feladatok . map ( ( item ) => { if ( item . status === true ) { counter += 1 ; } } ) if ( counter === 0 ) { doneItemsCounter . innerText = '0' ; } else doneItemsCounter . innerText = Math . floor ( counter / todos . length * 100 ) ; }
frissiti a kesz allapotu task-ok szamat jelzo mezot
frissiti a kesz allapotu task - ok szamat jelzo mezot