Hi everyone. I’m trying to pass last task and it isn’t working. Could you help me?
This is code:
export function scaleRecipe(recipe, numberPortions) {
var newRecipe = recipe;
for (let item in newRecipe) {
newRecipe[item] *= numberPortions / 2;
}
return newRecipe;
}
What am I missing?