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

261
Vistas
Javascript Template Literals - Uncaught syntax error, unexpected identifier

Image from Visual Studio Code- please view image

I need to find out what the issues are here. I was following a tutorial with Udemy to help me learn how to code. I was coding along trying to learn template literals and I received this error.

const firstName = 'Greg';
    const myjob = 'web developer';
    const birthYear = 1991;
    const currentYear = 2037;


    const newSentence = "I'm " + firstName + ', a ' + (currentYear - birthYear) + ' year 
    old ' + myjob + '!';
    console.log(newSentence);

    const gregNew = 'I'm ${ firstName }, a ${ currentYear - birthYear} year old ${ myJob 
     } !';

    console.log(gregNew);

about 4 years ago · Juan Pablo Isaza
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