Nested Conditions

Learning from AstroPlatformer

Code Runner Challenge

nested-conditions

View IPYNB Source
%%js
// CODE_RUNNER: nested-conditions

const a = true, b = true, c = false;
if (a) {
  if (b) {
    if (!c) console.log("All nested conditions pass");
  }
}

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