loading
index.js
1
2
3
4
5
6
7
8
9
const request = require('request');

const url = "https://pokeapi.co/api/v2/pokemon/pikachu/";

request(url, { json: true }, (err, res, body) => {
  if (err) { return console.log(err); }
  console.log(`Pokemon: ${body.name}`);
  body.moves.forEach((move) => console.log(`Golpe: ${move.move.name}`))
});
Fetching token