addLunchToEnd(["Pizza", "Tacos"], "Burger")should return["Pizza", "Tacos", "Burger"]
I’m confused with this. Is it just asking me to add >console.log(addLunchToEnd([“Pizza”, “Tacos”], “Burger”));
inside the function? when I try that it fails and fails the task above.
do I need to be assigning the other foods somewhere?
Your code so far
const lunches = [];
//add-lunch-to-end-function
function addLunchToEnd(lunches,Tacos){
lunches.push('Tacos');
console.log(`${Tacos} added to the end of the lunch menu.`);
console.log(addLunchToEnd(["Pizza", "Tacos"], "Burger"));
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Challenge Information:
Build a Lunch Picker Program - Build a Lunch Picker Program
https://www.freecodecamp.org/learn/full-stack-developer/lab-lunch-picker-program/build-a-lunch-picker-program