Cities and countries

Report a typo

Change the function so that it accepts 2 parameters: city and country.

Sample Input 1:

Sample Output 1:

London is the capital of Great Britain
Write a program in JavaScript
// change the code below this line
function writeSentence() {
console.log(city + " is the capital of " + country);
}

writeSentence("London", "Great Britain");
___

Create a free account to access the full topic