exercise2 6-7

I found out that the original countries array didn't have `Iceland` but there were at these two quizzes.
pull/320/head
yendoz 3 years ago committed by GitHub
parent f60838950a
commit 6bbd2fe2eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -408,7 +408,6 @@ for(let i = 0; i <= 5; i++){
['Germany', 'GER', 7],
['Hungary', 'HUN', 7],
['Ireland', 'IRE', 7],
['Iceland', 'ICE', 7],
['Japan', 'JAP', 5],
['Kenya', 'KEN', 5]
]
@ -417,7 +416,7 @@ for(let i = 0; i <= 5; i++){
2. In above countries array, check if there is a country or countries containing the word 'land'. If there are countries containing 'land', print it as array. If there is no country containing the word 'land', print 'All these countries are without land'.
```sh
['Finland','Ireland', 'Iceland']
['Finland','Ireland']
```
3. In above countries array, check if there is a country or countries end with a substring 'ia'. If there are countries end with, print it as array. If there is no country containing the word 'ai', print 'These are countries ends without ia'.

Loading…
Cancel
Save