mirror of https://github.com/01-edu/public.git
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.
465 B
465 B
Has City
Instructions
Create a function hasCity
that takes a string called country
and a array of strings named cities
,
which contains the cities of that country and it returns a new function.
The new function takes a string called city
as a parameter which returns
whether the string is part of the cities
array or not.
If it is, it should return the string <city> is a city from <country>
, otherwise
<city> is not a city from <country>
.