8

if (smart === false) {
system32.delete();
} else if (smart === true) {
system32.DEMOLISH();
}

MUAHAHAH

Comments
  • 2
    Oh! I'm lucky that `typeof smart === "string"`
  • 3
    if(!smart)
    ...
    else
    ...
  • 0
    @gitreflog it's JavaScript lol, so it's "let smart = true;". Three === in JavaScript is only for conditions, and one = is for the actual setting of the variable. You read the script like this: if smart is equal to false then delete system32. Else if smart is equal to true then system32.DEMOLISH.
  • 2
    @OmerFlame ik. but i said: my smart is of type string. so it will match neither branch. typeof x returns the type of x as a string.
  • 0
Add Comment