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

148
Vistas
Is it possible to convert a double quoted string with template literal to tilde string to assign values?

I am trying to convert a double quoted string containing template literal into tilde string such that I can pass values inside the string.

Sample:

const email = "hello there ${user_name}"

const emailParser = (email)=>{

let user_name = "alex"
console.log(`${email}`)
console.log(`hello there ${user_name}`)

}

emailParser(email)

Result

hello there ${user_name}
hello there alex

I would like to know, if there is some method to achieve the result of first console log to be like that of second console log.

about 4 years ago · Santiago Trujillo
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