String Interpolation II


#1

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

I’m getting an error asking “Did you interpolate your name and favorite city using ES6 string interpolation?”. Even though my code has done that and the console is printing exactly what it should. Is the console not printing what it should? Why am I getting this error? Console prints - My name is Ryan. My favorite city is Seattle



let NAME ='Ryan';
let CITY ='Seattle';
console.log(`My name is ${NAME}. My favorite city is ${CITY}`);



#2

you missed a . at the end


#3

Thank you for helping me solve this.


#4

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