var baseUrl = "https://pokeapi.co/api/v2/pokemon/";
var pokemonid = document.getElementById('pokemon_id').value;
function fetchPokemon(){
fetch(`${baseUrl}&{pokemonid}`)
.then(response => {
return response.json()
})
.then(data => {
console.log(data);
})
}
fetchPokemon();
This code return me https://pokeapi.co/api/v2/pokemon/?offset=20&limit=20' at url, how can I change pokeomonid.value for return the number or name on the input?