Skip to content
Discussion options

You must be logged in to vote

Hi @HannaKdeSouza, It looks like you're trying to use template strings to combine the accuracy variable with plain text. To do that, you need to put backticks (`) around the string instead of single quotes.

return `<p> You responded correctly on ${accuracy}% of the trials. </p><p>If you are unhappy with your score, keep on practicing English vowels</p><p>Press any key to complete the task. Thank you!</p>`;

The other way to do this is to use the + operator to combine variables and single-quoted strings:

return '<p> You responded correctly on '+accuracy+'% of the trials. </p><p>If you are unhappy with your score, keep on practicing English vowels</p><p>Press any key to complete the task. Th…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by becky-gilbert
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants