Forkify: cookingTime is Undefined

Author: Revoj-aCreated Feb 25, 2025Updated Jul 23, 2025

Why the cookingTime always renders undefined? I tried every id's but it always undefine.

recipe = { id: recipe.id, title: recipe.title, publisher: recipe.publisher, sourceUrl: recipe.source_url, image: recipe.image_url, servings: recipe.servings, cookingTime: recipe.cookingTime, ingredients: recipe.ingredients, };

${ recipe.cookingTime }

Source: jonasschmedtmann/complete-javascript-course