Arrays

Learning from AstroPlatformer

Code Runner Challenge

arrays

View IPYNB Source
%%js
// CODE_RUNNER: arrays

const platforms = [{id:"p1",x:40,y:290},{id:"p2",x:190,y:230}];
const coins = [{id:"coin1",x:90,y:268}];
console.log("Platforms:", platforms.length);
console.log("Coins:", coins.length);

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