The VikiD Truth

Knowledge base / Computing

Javascript | Javascript kata |Node JS | Data Types | Variables | Control Flow | Scope and Environment | Objects | Functions | Events | Prototypal Inheritance | Three.js | 3DE Code Editor |

Javascript Control Flow

Equality

Objects

  Obj1 === obj2   // always false
  

unless they are literally the same object. }

If Statements

  let condition  = true;
  let condition2 = false;
  if (condition) {
  console.log("Do action");
  } else if (condition2) {
  console.log("take alternative actions");
  } else {
  console.log("take default action");
  }

Last edited · 11 revisions

Tags: #Computing