how to pull value from a callback function of a fetching request

前端 未结 0 1564
醉梦人生
醉梦人生 2021-02-05 08:23

newJoke = undefined can some one explain it :D thanx in advance

const newJoke = joke.getRandomDadJoke(function (joke) {
  console.log(joke);
  return joke;
});

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题