Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level 7 lesseon 3 javascript

In the code given in the editor, we have created an array with the names of a few car brands. We want you to use indexing, to print the J of the array element Jeep on the console.

Use the index to store the array element Jeep in the myCar variable.

Then use indexing again on myCar variable to print the character J on console using console.log() statement.

You can do it, common!
by

1 Answer

Fareedmzmen
Try this:

Car_brands = ["Audi","BMW","Jeep","Kia"];
myCar = Car_brands[2];
console.log(myCar[0]);

Login / Signup to Answer the Question.