0

Introduction to Javascript

Lesson about template literals. Variables country and capital are declared by the system. Here it is my solution: console.log(`Country:${country},Capital:${capital}`); marked as wrong by the system. Funny is that I checked their solution and is exactly the same, moreover my output is the same as the expected output As a free learner, the only outcome is that I loose interest in SoloLearn...

1st Dec 2022, 3:05 PM
Alessandro Puddu
Alessandro Puddu - avatar
2 Answers
+ 5
Alessandro Puddu funny thing is that there is no 'Country : ' in all test cases output You should correct your code
1st Dec 2022, 4:40 PM
AÍąJ
AÍąJ - avatar
+ 2
My correct answer is: return `Name: ${country}, Capital: ${capital}`; dont forget the white spaces after colon and comma
1st Dec 2022, 3:43 PM
arturop200
arturop200 - avatar