Remember that in JSX (which is what the <div> coding is) the curly brackets take you back into Javascript so you need to make sure you are wrapping the whole of the Javascript code (in this case, the ternary) in curly brackets
You have used curly brackets here - in Javascript (inside ofJSX) the curly brackets take you back to JSX, and isCaptain is not in JSX, but in Javascript, so you don’t need them here in this Javascript ternary.
Hope that explanation is clear
Hey Yhan, the question asked to check if isCaptain is true.
First, wrap all your js code in a set of curly brackets, one pair is all you require for this question. Check if isCaptain is strictly true then return “(Captain)” if not, then empty string.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.