Javascript Arithmetic Operator Question 4

Introduction

What is the output of the following code:

let total = 0;/*  w  ww  . j a  v  a2s  .  c  o  m*/

for (let i = 0; i < 20; i++) {
    if (i % 2) {
        continue;
    }
    
    total = total + i;
}

console.log(total);


90



PreviousNext

Related