I need help with these JavaScript Questions. Questions #1 What value will the variable x have when the loop executes for the first time? var names = ["Tom", "Bill", "Sherry", "Clay"]; for(var x in...


I need help with these JavaScript Questions.


Questions #1


What value will the variable x have when the loop executes for the first time?


var names = ["Tom", "Bill", "Sherry", "Clay"];


for(var x in names){


    console.log(names[x]);


}


Question #2


Take a look at the example and determine what will be printed to the console.


Example
var favoriteHobbies = ["Disc Golf", "Drones", "Cars", "Coding", "Creations"];


for(index = 0; index < 2;="">


       console.log(favoriteHobbies[index]);


}


Question #3


You can use several websites to troubleshoot your code link JSLint, but another website that is more lenient to correcting your code is ___________?


Question #4


An __________ is a special variable which can hold more than one value at a time.



Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here