www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata
function name (searchMeals)
const showMeals = document.getElementById('show-meals') // line 28
const onload = () => {
const url = https://www.themealdb.com/api/json/v1/1/search.php?s
fetch(url)
.then(res => res.json())
.then(data => displayFood(data.meals))
}
onload();
const showDetails = food => { console.log(food); const showDetail = document.getElementById('showDetails') showDetail.textContent = ''; const div = document.createElement('div') div.classList.add('card') div.style.width = '18rem'; div.innerHTML=`
If you want to see how to make this food watch youtube or want to see the recepies click visit
visit YoutoubeshowDetail.appendChild(div)