[closed and completed]

[closed and completed]
0

#1

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.


#2

Escaped backslash is \\, not \.


#3

I was meant to type this. I don’t know how I it ended up like that with 1 backslash in the thread -
var myStr = ‘FirstLine\n\SecondLine\\rThirdline’

It still says I’m not done


#4

Okay ignore that last reply it did the same thing again. Here’s a screenshot https://i.imgur.com/ggssofo.png


#5

Escape your code with triple backticks and it won’t get mangled (backtick: `).

Anyway, here’s a hint as to your problem:

var attempt = 'FirstLine\n\\SecondLine\\\rThirdline';
var answer = 'FirstLinenewlinebackslashSecondLinebackslashcarriage-returnThirdLine'
  .replace(/newline/g, '\n')
  .replace(/backslash/g, '\\')
  .replace(/carriage-return/g, '\r');

attempt === answer; // false
attempt.toUpperCase() === answer.toUpperCase(); // true

#6

Oh I just noticed I forgot to put a uppercase L on ThirdLine and now I completed the challenge. Well that was pretty dozy of me. Thanks for the help


#7

No worries! Capitalization typos are a menace.