إنشاء عداد الرقم in javascript

index.tsx
let count = 0;

function incrementCounter() {
    count++;
    console.log(count);
}

function resetCounter() {
    count = 0;
    console.log(count);
}

incrementCounter();
incrementCounter();
resetCounter();
210 chars
16 lines

related categories

gistlibby LogSnag