Question: Which code would you use to access the Irish flag?

  1. flagDatabase.countries[0].flag
  2. flagDatabase.countries[1].flag
  3. flagsJSON.countries[0].flag
  4. flagDatabase[1].flag

Answer: The correct answer of the above question is Option A:flagDatabase.countries[0].flag