Need some help ( learn javascript: browser compatibility)


#1

What is wrong with that code? It seems right to me!

var carbonara = "You can make carbonara with " + pasta + ", " + meat + ", " + "and a sauce made with " + sauce.;

https://www.codecademy.com/courses/learn-javascript-transpilation/lessons/browser-compatibility-and-transpilation/exercises/why-update?action=lesson_resume&course_redirect=introduction-to-javascript


#2

at the end of your sentence (after sauce variable), you have a full stop (.) this should be a string (".")


#3

thanks, but it is still not working!


#4

Can you show me an updated version of your code?


#5
var carbonara = "You can make carbonara with " + pasta + ", " + meat + ", " + "and a sauce made with " + sauce + ".";

#6

i was hoping the exercise wasn’t going to make a problem out of it, but it seems its the case here after meat variable:

", " + "

" + " is pointless, it can just be ", and a sauce (rest of string)


#7

Sorry, thanks for your help again!


#8

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