Iteration
Lesson for iteration
Iteration
Learning from AstroPlatformer
Code Runner Challenge
iteration
View IPYNB Source
%%js
// CODE_RUNNER: iteration
const platforms = [{id:"p1"},{id:"p2"},{id:"p3"}];
for (const p of platforms) {
console.log("Platform:", p.id);
}
Lines: 1
Characters: 0
Output
Click "Run" in code control panel to see output ...