Skip to content
Snippets Groups Projects
Commit 245e8eee authored by AIT LAMINE Ilias's avatar AIT LAMINE Ilias
Browse files

Merge branch 'ilias_branch' into 'main'

feat: show five pokemons

See merge request !1
parents d2ca088e 5103e069
No related branches found
No related tags found
1 merge request!1feat: show five pokemons
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Pokémon List</h1>
<ul id="pokemon-list"></ul>
<script>
const pokemons = ["Pikachu", "Bulbasaur", "Charmander", "Squirtle"];
const taille = [2, 4,8,10,7];
const poids = [3,3,9,10,2000];
const listElement = document.getElementById("pokemon-list");
for (let i = 0; i < pokemons.length; i++) {
const li = document.createElement("li");
li.textContent = pokemons[i] + ' ' + poids[i] + 'kg ' + taille[i] + 'm';
listElement.appendChild(li);
};
</script>
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment