0

JS

Please check my code and give some advice if there is an error Task: Task Complete the code to return a string in the format you are given in the sample output: Sample Input Portugal Lisbon Sample Output Country: Portugal, Capital: Lisbon let country = readLine(); let capital = readLine(); //complete the code console.log(`Country: , Capital: `);

15th Dec 2022, 4:45 PM
Irina Safaryan
Irina Safaryan - avatar
3 Answers
+ 2
Irina Safaryan , change last line => console.log(`Country: ${country}, Capital: ${capital}`);
15th Dec 2022, 4:54 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
idk which version of this question I got but, mine in sample output says "Name: Portugal, Capital: Lisbon"
15th Dec 2022, 4:56 PM
arturop200
arturop200 - avatar
0
Thank you!
15th Dec 2022, 5:07 PM
Irina Safaryan
Irina Safaryan - avatar