Como logro para que la segunda linea baje sin afectar la barra invertida y cumplir con el reto

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

Your code so far


const myStr ="FirstLine
\t\\\SecondLine
\ThirdLine
\."; // Change this line

Your browser information:

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

Challenge: Escape Sequences in Strings

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


You can’t use line breaks here. You need to use the newline character.

const myStr ="FirstLine\n\t\\\SecondLine\n\ThirdLine\n\."; // Change this line
eso hice hace rato y no se logra

1 Like

The extra stuff at the end is not in the instructions.

const myStr = “FirstLine\n\t\\SecondLine\n\ThirdLine\n.”
nada intento ye intento variables me da que no estan en las instrucciones solo la consigna de que tiene que estar con en las instrucciones me da el fallo

FirstLine
\SecondLine
ThirdLine

There is no period in the instructions. There is no extra new line in the instructions.

Primera linea
\Segunda linea
Tercera Línea

asi lanza la respuesta qcomo bajo la segunda linea

Is this code you are trying? I already said you can’t have line breaks in the code. You must use the newline character.

const myStr = "FirstLine\n\t\\\SecondLine\n\ThirdLine\n

nada intento ye intento variables me da que no estan en las instrucciones

There is still no extra newline at the end of the string in the instructions…

Uploading: imag…jpg…

hay le mando una captura

Sending a picture does not help.

You have an extra newline character at the end of your string.
You have an extra newline character at the end of your string.
You have an extra newline character at the end of your string.

Remove this extra newline character and you should pass.

eso hice la primera vez pero ahora recien me funciono :+1: :+1:

2 Likes

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