Api Integration

Learning from AstroPlatformer

Code Runner Challenge

api-integration

View IPYNB Source
%%js
// CODE_RUNNER: api-integration

function getScores() {
  return new Promise(r => setTimeout(() => r([{name:"Player",score:100}]), 100));
}
getScores().then(s => console.log("Scores:", s));

Lines: 1 Characters: 0
Output
Click "Run" in code control panel to see output ...