0

Still on js tmplate literal not showing green and not going me to next leval?

Still on country card app not showing green althouth i put the right answer can anybody help me to go next level

12th Dec 2022, 3:02 AM
Imran Sarfraz
Imran Sarfraz - avatar
4 ответов
+ 2
Save and share your code bit link here, we'll see what's the problem. Can't help without reviewing your tryout code first ...
12th Dec 2022, 4:19 AM
Ipang
+ 1
let country = readLine(); let capital = readLine(); //complete the code console.log(`Country: ${spain}, Capital: ${madrid}`);
12th Dec 2022, 7:31 AM
Imran Sarfraz
Imran Sarfraz - avatar
+ 1
If it is the one giving a Sample Output of: Name: Portugal, Capital: Lisbon then try this: return `Name: ${country}, Capital: ${capital}`;
12th Dec 2022, 8:10 AM
arturop200
arturop200 - avatar
+ 1
Here is full code, I know you asked same question yesterday. I tried to help you find solution yourself, but you ask same question again function main() { var country = readLine(); var capital = readLine(); console.log(countryCard(country, capital)); } function countryCard(country, capital){ //complete the function //use backtick (` `) for template literal // Your goal was to add this line, other code was already written for you return `Name: ${country}, Capital: ${capital}`; } https://www.sololearn.com/Discuss/3171505/?ref=app
12th Dec 2022, 8:13 AM
PanicS
PanicS - avatar