code: function createOption(country) {
            var option = document.createElement('option');
  
            for (var attr in country) {
              option.dataset[attr] = country[attr];
            }
            option.value = country.code;
            option.textContent = country.name;
  
            return option;
          }
docs: create the <option> element