-
-
Save antronic/e283170a720eea155a54a13958a29039 to your computer and use it in GitHub Desktop.
pokedex-jquery-2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2. set render function | |
var renderPokemonList = function(filterPokemon) { | |
$("#filterPokemonCount").html(filterPokemon.length); | |
var liStrings = filterPokemon.map(function (item) { | |
return "<li>" + item.name + " (Atk: " + item.attack + ", Def: " + item.defense + ")</li>"; | |
}); | |
$("#pokemonListUl").html(liStrings); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment