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
Please login or Register to submit your answer