String-interpolation-ii tutorial

Hi there,

In this tutorial:
https://www.codecademy.com/courses/introduction-to-javascript/lessons/variables/exercises/string-interpolation-ii

You specifically tell the user to print the following string, with capitalized name and city:
My name is NAME. My favorite city is CITY

Yet when we run the following code:
let myName = ‘Matt’;
let myCity = ‘■■■■’;
console.log(My name is ${myName.toUpperCase()}. My favorite city is ${myCity.toUpperCase()}.);

It is not being accepted, even though it logs exactly what you ask of the student…
Can you please fix it?

Thanks,
Matt

It’s probably because you did toUpperCase. The block letters are just to emphasize your actual name goes there.

1 Like