I have been to several different links online! I have tried this problem 10 different ways and it does NOT PASS THE CODE. Why are people saying check capitals??? If the solution they post doesn’t work in (l vs L). Or ("" vs ‘’)!
New line = \n right?
Backslash = \\ right?
Carriage-return = \r right?
So what is going wrong here. There are people on all three sites posting the wrong answer/solution. An when people try to explain their reasoning it doesn’t work. The instructions are below. I’m so lost. Someone please in Clear English without playing games…
Tell me what I’m not understanding.
I have checked spelling, CameLCase, and double quotes. And it still doesn’t pass mustard.
Sigh
/*
Instructions
Assign the following three lines of text into the single variable myStr using escape sequences.
FirstLine
\SecondLine
ThirdLine
You will need to use escape sequences to insert special characters correctly. You will also need to follow the spacing as it looks above, with no spaces between escape sequences or words.
Here is the text with the escape sequences written out.
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.
If you want to compare your solution to others, use the Get a hint button on the challenge and there are alternative solutions you can compare yours to. Also, you can probably search older posts using the forum search feature or google the challenge name and find more there.
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.
Work on the problem one at time, and pay attentiont to the output window. For example:
I applied the ‘newline’ first, then watched as the string starts to line up vertically in the output window:
FirstLine
SecondLine
ThirdLine
Looking back at the requirement, the SecondLine appears indented, so apply ‘tab’
FirstLine
______SecondLine
ThirdLine
Finally applying backslash to SecondLine. I watched it change in the output window into the final required output.
FirstLine
______\SecondLine
ThirdLine