Mana shu misol JavaScript ES5 bilan qilingan: 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 (((functiontype) { return type.type.name; }); console.log (("Pokemon turi: " + types.join", ((( ")); }; xhr.end (((); } getPokemonType (((chupa ");
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence