Message from JavaScript discussions

May 2018

— Okay this chat needs some help

— 

Hey guys... i am getting a bug in my code...
i am getting Uncaught TypeError: recipes.map is not a function. what could be the problem?
`
recipes = [{ id: 1, title: "Foo", imageUrl: "http://dooneyskitchen.com/palm-nut-ehuru-egusi-soup/", description: "Boil your meat, fry your egusi, add palm oil and season",}, { id: 2, title: "Foo", imageUrl: "http://dooneyskitchen.com/palm-nut-ehuru-egusi-soup/", description: "Boil your meat, fry your egusi, add palm oil and season",}]
recipes.map( recipe => {
return(
<HomeCard recipe={recipe} key={recipe.id} />
)
}`

— Bro y u go here with this

— Sorry bro... didn't know its the same group..

— The only mistake i can see is that you forgot a parentesis at the end to close the map but maybe it happend when you copied the code

Message permanent page

— Hi ppl... i simpy need to read a .txt file line by line with any HTML5 need

— How can i do?

— In browser or on server?

— Server

— I just need to populate an array of each line of an input txt file

— Fixed & known path

— I'm using this right now but it raise me an error "Fileread not defined"