0
What is the output of this code?
var foods = [âpizzaâ, âsandwichâ, âsoupâ]; console.log(foods.length) ...i know itâs 3..so why does it say the answer is 5?
4 Respostas
+ 5
/*there was a problem with your quotation marks*/
var foods = ["pizza","sandwich","soup"];
console.log(foods.length);
0
that shouldnt matter
0
Where is the link to your code in the code playground?
0
Tiggatee Why shouldn't it matter? It's an invalid quoting character.