Lexyful / What-s-Cookin

0 stars 0 forks source link

View home page function fetching successfully #39

Closed jmartin777 closed 1 year ago

jmartin777 commented 1 year ago
     worked on the ViewHomePage function.

-got The fetch to work and be used with our function-

                      methods used :

map method iterates over each recipe in the recipeData array and maps each one to an HTML string. The join method is then used to concatenate all of the HTML strings into one string - then added to the inner html of the 'recipe container' join() method creates and returns a new string by concatenating all of the elements in an array (or an array-like object), separated by commas or a specified separator string // this will allow multiple articles to be added to the recipe container.(new image / new name)

BriBourassa commented 1 year ago

This is absolutely incredible and so are you! I had no idea we'd need .join() so thank you for figuring that out!!