Friday , September 20 2024

Review the following code: if (counter <= 10) { if (counter >= 10) { console.log(1); } } We can replace it using:

Questions BankCategory: JavaScript Essentials 1Review the following code: if (counter <= 10) { if (counter >= 10) { console.log(1); } } We can replace it using:
Review the following code:

if (counter <= 10) { if (counter >= 10) {
        console.log(1);
    }
}

We can replace it using:

  • if (counter == 10) console.log(1);
  • if (false) console.log(1);
  • if (counter >= 10) console.log(1);
  • if (true) console.log(1);

More Questions: JavaScript Essentials 1 – JSE1: Module 4 Test