Build a string inspector step 9 failing for seemingly no reason

I tried both:

console.log(`The word ${platform} was sliced from the message.`);

and

console.log("The word " + platform + " was sliced from the message.");

and the console output looks correct:

Here are some examples of the slice() method: The word freeCodeCamp was sliced from the message.

Am I being dense, or is this bugged?

You aren’t paying close enough attention to the punctuation

2 Likes

hah yeah that was it, thanks!

I’m facing the same issue, and I still can’t figure out the solution

hi @Ben_El_Elyon , please create your own topic so we can give you the focus you deserve

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

The platform is not surrounded by double quotation ,

code removed by moderator

hi @rami.mariah6

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. How to Help Someone with Their Code Using the Socratic Method

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.