+ 1
Pls help
let country = readLine(); let capital = readLine(); console.log(`Country:${country},Capital:${capital}`); Code is from country card test and i checked solution it was all same but not working
5 odpowiedzi
+ 1
It is from template literals the code coach thing at last
+ 2
Can you add task number or link with course?
I guess, there is a space required after country or after colon ':' ( between country, capital)..
console.log( `Country: ${country}, Capital: ${capital}` );
+ 1
Output format except a space after values.. Check again closely..
+ 1
Can u elaborate
+ 1
It should be next string as output:
Name: Portugal, Capital: Lisbon
But your string is:
Country:Portugal, Capital:Lisbon
Fix spacing and replace Country with Name
I omitted readLine part, so you can understand difference better