Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

144
Vistas
How to make sure that characters from a string are not deleted?

I have a string: let value = "Emrah Tebrikeder120\'\'\'\'\'\'\'";. When I try to output it to the console, all the \ are deleted. How do I make all the \ in the string appear?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Use a double-backslash, like this:

let value = "Emrah Tebrikeder120\\'\\'\\'\\'\\'\\'\\'";

The "\'" is considered as escape sequence.

about 4 years ago · Juan Pablo Isaza Denunciar

0

\ is an escape character so, it will be ignored. If you want to keep it, you will need to escape the escape character (put double \). Like this:

let value = "Emrah Tebrikeder120\\'\\'\\'\\'\\'\\'\\'";
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda