0
country card coding problem in javascript for template literals
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 let msg = `Name: ${country}, Capital: ${capital}`; console.log(msg);
2 odpowiedzi
+ 3
You have 2x console log. That means your program is trying to output something twice. Is that correct?
(Think about how to have the function countryCard return the information to output)
0
Hy..