Tell us what’s happening:
my function logs the expected results for no 4 but this won’t work
Your code so far
let lunches = [];
let string = ''
function addLunchToEnd(lunches,string) {
lunches.push(string)
console.log(`"${lunches} added to the end of the lunch menu."`)
}
addLunchToEnd(lunches, "Tacos")
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36 Edg/149.0.0.0
Challenge Information:
Build a Lunch Picker Program - Build a Lunch Picker Program