Presently, I possess this specific JSON object
"name": "Luke Skywalker",
"height": "172",
"mass": "77",
"hair_color": "blond",
"skin_color": "fair",
"eye_color": "blue",
"birth_year": "19BBY",
"homeworld": "Tatooine",
"films": [
"A New Hope",
"The Empire Strikes Back",
"Return of the Jedi",
"Revenge of the Sith",
"The Force Awakens"
],
}
I am in need of producing a string with this exact format:
{name}, {height}cm, {mass}kg. Featured in {film count} films.
Regrettably, my current implementation is returning an error
return `${character.name}, ${character.height} cm, ${character.mass} kg. Featured in ${character.films.length} films.`;}
[error][1]: https://i.sstatic.net/FAciA.png