You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
443 B

5 years ago
## Has City
### Instructions
5 years ago
Create a function `hasCity` that takes a string called `country` and an array of strings, which are cities of that country, which returns a new function. \
The new function takes a string, called `city`, as a parameter and which determines
whether the array contains that string or not.
5 years ago
If it does, it should return the string `<city> is a city from <country>`, otherwise
`<city> is not a city from <country>`.