Free-to-Play Games Database

БЕСПЛАТНО
От Digiwalls Media | Обновлено 2 years ago | Gaming
Популярность

9.9 / 10

Задержка

16,602ms

Уровень обслуживания

87%

Назад ко всем обсуждениям

help function

Rapid account: Xbeatrizscosta
xbeatrizscosta
8 months ago

i have this function but I want to change console.log to return, so that I can use the function to remove the thumbnail to html later, can anyone help me?

const options = {
method: ‘GET’,
headers: {
‘X-RapidAPI-Key’: ‘5a417bb0c3msh9ad46ccb984dd3fp19d5f5jsn9469e39506ab’,
‘X-RapidAPI-Host’: ‘free-to-play-games-database.p.rapidapi.com
}
};

fetch(‘https://free-to-play-games-database.p.rapidapi.com/api/filter?tag=3d.mmorpg.fantasy.pvp&platform=pc’, options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии