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

Javascript level 7 lesson 4

let cars=["Lexus", "Jeep", "Audi", "BMW"];

/ Put the code here/
let audi = ["Audi"];
cars[0] = audi[0];
console.log(cars);

Please help
by

2 Answers

manujayakumar
let cars=["Lexus", "Jeep", "Audi", "BMW"];

/ Put the code here/
cars[0]= cars[2];
console.log(cars);
kshitijrana14
Try this one

let cars=["Lexus", "Jeep", "Audi", "BMW"];
cars[0]=cars[2];
/ Put the code here/


console.log(cars);

Login / Signup to Answer the Question.