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
4 Réponses
+ 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 ...
+ 1
let country = readLine();
let capital = readLine();
//complete the code
console.log(`Country: ${spain}, Capital: ${madrid}`);
+ 1
If it is the one giving a Sample Output of:
Name: Portugal, Capital: Lisbon
then try this:
return `Name: ${country}, Capital: ${capital}`;
+ 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