From 8a2005e9307e65e76c46c0f1b4f0f3fc66f7f80f Mon Sep 17 00:00:00 2001 From: Urmas Rist Date: Fri, 21 Jan 2022 07:41:15 +0200 Subject: [PATCH] has-city: Specify type of paramaters/return values Also some grammar fixes. --- subjects/has-city/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/subjects/has-city/README.md b/subjects/has-city/README.md index dbbf0add3..d0d65938b 100644 --- a/subjects/has-city/README.md +++ b/subjects/has-city/README.md @@ -2,10 +2,10 @@ ### Instructions -Create a function `hasCity` that takes a country and an array of cities -of that country and it returns a new function. \ -The new function takes a city parameter which returns -whether a city is part of that country or not. +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 be returned ` is a city from `, otherwise +If it is, it should return the string ` is a city from `, otherwise ` is not a city from `.