Aquí está el mismo ejemplo hecho con JavaScript ES5:

function getPokemonType(pokemonName) {
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://pokeapi.co/api/v2/pokemon/" + pokemonName, true);
xhr.onreadystatechange = function() {
if (xhr.readyState === 4 && xhr.status === 200) {
var pokemon = JSON.parse(xhr.responseText);
var types = pokemon.types.map(function(type) {
return type.type.name;
});
console.log("El tipo de Pokémon es: " + types.join(", "));
}
};
xhr.send();
}

getPokemonType("pikachu");
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence