Thursday , September 19 2024

We have declared an array let animals = [“dog”, “cat”, “hamster”];. We want to temporarily comment out the element “cat”, and to do this, we can modify the declaration as follows:

Questions BankCategory: JavaScript Essentials 1We have declared an array let animals = [“dog”, “cat”, “hamster”];. We want to temporarily comment out the element “cat”, and to do this, we can modify the declaration as follows:
We have declared an array let animals = [“dog”, “cat”, “hamster”];. We want to temporarily comment out the element “cat”, and to do this, we can modify the declaration as follows:

  • let animals = [“dog”, #”cat”,# “hamster”];
  • let animals = [“dog”, //”cat”,// “hamster”];
  • let animals = [“dog”, “hamster”];
  • let animals = [“dog”, /*”cat”,*/ “hamster”];

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