-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQ39.js
More file actions
27 lines (24 loc) · 735 Bytes
/
Copy pathQ39.js
File metadata and controls
27 lines (24 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* *****************************************************
*
* File Description: Problem 39
* panacloud-modern-global-apps/typescript-node-projects
*
*
* City Names: Write a function called city_country()
* that takes in the name of a city and its country.
* The function should return a string formatted like this:
* "Lahore, Pakistan"
*
* Call your function with at least three city-country pairs, and print the value that’s returned.
*
* created by: abkh
* modified on: 6 October 2022
*
*/
function city_country(city, country)
{
return console.log("'%s, %s'", city, country)
}
city_country("Tokyo","Japan")
city_country("Karachi","Pakistan")
city_country("California","USA")