Change the function so that it accepts 2 parameters: city and country.
Functions
Cities and countries
Report a typo
Sample Input 1:
Sample Output 1:
London is the capital of Great BritainWrite a program in JavaScript
// change the code below this line
function writeSentence() {
console.log(city + " is the capital of " + country);
}
writeSentence("London", "Great Britain");
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.