function backgrounForType(pokemonType) {
  const pokemonTypeColor = {
    default: "#FCFCFC",
    fire: "#F08030",
    water: "#559EDF",
    grass: "#55DF9E",
    bug: "#A8B820",
    electric: "#FAE078",
    dragon: "#FF00FF",
    flying: "#A890F0",
    fighting: "#C03028",
    ghost: "#705898",
    ground: "#E0C068",
    ice: "#98D8D8",
    normal: "#A8A878",
    poison: "#A040A0",
    psychic: "#F85888",
    rock: "#B8A038",
  };

  if (pokemonType in pokemonTypeColor) {
    return pokemonTypeColor[pokemonType];
  } else {
    return pokemonTypeColor["default"];
  }
}
// Return background color for type of pokemon
Return background color for type of pokemon
Return background color for type of pokemon
function backgrounForType(pokemonType) {
  const pokemonTypeColor = {
    default: "#FCFCFC",
    fire: "#F08030",
    water: "#559EDF",
    grass: "#55DF9E",
    bug: "#A8B820",
    electric: "#FAE078",
    dragon: "#FF00FF",
    flying: "#A890F0",
    fighting: "#C03028",
    ghost: "#705898",
    ground: "#E0C068",
    ice: "#98D8D8",
    normal: "#A8A878",
    poison: "#A040A0",
    psychic: "#F85888",
    rock: "#B8A038",
  };
  if (pokemonType in pokemonTypeColor) {
    return pokemonTypeColor[pokemonType];
  } else {
    return pokemonTypeColor["default"];
  }
}
function backgrounForType ( pokemonType ) { const pokemonTypeColor = { default : "#FCFCFC" , fire : "#F08030" , water : "#559EDF" , grass : "#55DF9E" , bug : "#A8B820" , electric : "#FAE078" , dragon : "#FF00FF" , flying : "#A890F0" , fighting : "#C03028" , ghost : "#705898" , ground : "#E0C068" , ice : "#98D8D8" , normal : "#A8A878" , poison : "#A040A0" , psychic : "#F85888" , rock : "#B8A038" , } ; if ( pokemonType in pokemonTypeColor ) { return pokemonTypeColor [ pokemonType ] ; } else { return pokemonTypeColor [ "default" ] ; } }
Return background color for type of pokemon
Return background color for type of pokemon