##Know Your Four Letter Countries
-
Create an array called
fourLetterCountries
with the following countries (in this order):- Chad
- Cuba
- Greenland
- Iraq
- Mali
- Oman
- India
-
Add Fiji to the end of the array
-
Insert Iran after Iraq and before Mali
-
Delete India
-
Reverse the order of the array
-
Replace Greenland with Togo
-
Add Laos to the end of the array
-
Reverse the order of the array again
-
Add Peru to the start of the array
What does your final array look like?
Need some help?
Check out this resource.
View Know Your Four Letter Countries on Learn.co and start learning to code for free.