AyrA

Countries without A

Nov 29th, 2018
586
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Countries without the letter 'A' in their name:
  2.  
  3. [
  4.   "Burundi",
  5.   "Belgium",
  6.   "Benin",
  7.   "Belize",
  8.   "Brunei",
  9.   "Chile",
  10.   "DR Congo",
  11.   "Republic of the Congo",
  12.   "Comoros",
  13.   "Cyprus",
  14.   "Djibouti",
  15.   "Egypt",
  16.   "Fiji",
  17.   "United Kingdom",
  18.   "Guernsey",
  19.   "Greece",
  20.   "Hong Kong",
  21.   "Jersey",
  22.   "Kosovo",
  23.   "Liechtenstein",
  24.   "Lesotho",
  25.   "Luxembourg",
  26.   "Morocco",
  27.   "Mexico",
  28.   "Montenegro",
  29.   "Niger",
  30.   "Niue",
  31.   "Peru",
  32.   "Philippines",
  33.   "Puerto Rico",
  34.   "Réunion",
  35.   "Sweden",
  36.   "Seychelles",
  37.   "Togo",
  38.   "Timor-Leste",
  39.   "Turkey",
  40.   "Yemen"
  41. ];
  42.  
  43. //Code to get this from countries.json:
  44. countries.filter(function(v){return v.name.common.toLowerCase().indexOf('a')<0}).map(function(v){return v.name.common});
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment