Question #264392

Explain about control and looping structure with an example program? 


Expert's answer

for (let i = 0; i < 10; i++) {
    if (i%2==0) {
        console.log("Even")
    } else console.log("Odd");
}

This function implements control and loop structure in JS.


LATEST TUTORIALS
APPROVED BY CLIENTS