Conditionals
Lesson for conditionals
Conditionals
Learning from AstroPlatformer
Code Runner Challenge
conditionals
View IPYNB Source
%%js
// CODE_RUNNER: conditionals
const collected = false;
if (!collected) {
console.log("Coin available");
} else {
console.log("Already collected");
}
Lines: 1
Characters: 0
Output
Click "Run" in code control panel to see output ...