String Interpolation won't let me pass


#1

https://www.codecademy.com/courses/learn-javascript-introduction/lessons/variables/exercises/string-interpolation-ii?action=lesson_resume&course_redirect=introduction-to-javascript

The page won’t let me go on. The error message is “Did you interpolate your name and favorite city using ES6 string interpolation?” even though I have already used it. It prints correctly to the console “My name is Finn. My favorite city is Northglenn.” What can I do? I really want to go on and am very frustrated.

const myName = 'Finn';
const myCity = 'Northglenn';

console.log(`My name is ${myName}.  My favorite city is ${myCity}.`)



#2

I figured it out. It’s because I put two spaces between the period and the capital letter of the next sentence, and they only put one.


#3

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