I ask this in reference to this question image not showing up from API.
And I read on https://meta.stackexchange.com/help/reopen-questions that "If you're simply unsure about the validity of the closure, the best place to ask is on the community's meta site." and it's what got me here.
The question is closed because it is "not reproducible or was caused by typos"
The user has a problem in the following line, which has a typo:
<img "https://spoonacular.com/recipeImages/" + ${meal.id} + "-90x90.jpg">
The img
tag lacks the src
attribute:
<img src="https://spoonacular.com/recipeImages/" + ${meal.id} + "-90x90.jpg">
But even when the typo is fixed, the code still won't work. It is around a template literal, and the user is attempting to concatenate the values, something that will just be part of the string, being a clear misunderstanding of template literals, but because he also had a typo, the question is instantly closed, should I just ignore questions with any typo in the code?
src="https://spoonacular.com/recipeImages/" + ${meal.id} + "-90x90.jpg"
is wrong, then what will it result to?=
instead of==
. There are usually duplicates for those.src="https://spoonacular.com/recipeImages/" + his img id + "-90x90.jpg"
on the final value, here an example codesandbox.io/s/cool-stonebraker-ksxrx?file=/src/index.js