I need to delete all the backslashes

Tell us what’s happening:
Describe your issue in detail here.
…But when im finished, it still thinks theres a backslash somewhere.
Your code so far

var myStr = '<a href="a link";target="_blank>Link<a>';

Your browser information:

Challenge: Quoting Strings with Single Quotes

Link to the challenge:

please look at this please please

did you use single quote instead of back tick??

var myStr = `<a href = “#” target="_blank">Link</a>`;

whats a backtick im new to java script

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

you have made too many changes to the string, you should have deleted only the backslashes that were escaping the quotes, not everything else, nor added new characters

This is you code:
var myStr = '<a href="a link";target="_blank>Link<a>';

You have used an extra Sami-clone(;) inside your code also you don’t have a proper close tag of the anchor </a> . you have to use

/
in your code.
that is blocking your code to run

Right code should be:
var myStr = '<a href="link" target="_blank>Link Name</a>';

Happy Coding :grinning: :grinning:

that still not correct, but please, instead of giving 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.

sorry, I didn’t understand you Leader

your solution is not correct

but please do not try to give solutions, instead help people with explanations and suggestions, thank you

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.