Basic JavaScript - Quoting Strings with Single Quotes

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

const myStr = '<a href= "http://www.example.com" target="_blank">Link</a>';

Does anyone know what's wrong with my code? 

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.42

Challenge: Basic JavaScript - Quoting Strings with Single Quotes

Link to the challenge:

Hi @darrenmonks ,

I don’t see anything wrong with your solution, I’m even able to pass the test with it.

it keeps on failing on my end asking me to take out all the backslashes, i juts wanted to make sure it wasn’t an error from my end

Can confirm, that your provided solution is good to pass this test. Maybe try reloading the page and paste the solution again? Not sure why it’s failing, but this might help.

1 Like

it worked after i reloaded, thanks for the help brother

1 Like

Happy to hear! Debugging & facing issues is a part of development, therefore I hope that it won’t affect your enthusiasm to learn this craft.

Keep up the good work!

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