Snippets Collections
const isUnderage = true;
const isDrunk = false;

if (isUnderage || isDrunk) {
  console.log("Cannot drive");
}
star

Wed Apr 05 2023 16:10:10 GMT+0000 (Coordinated Universal Time) https://codetogo.io/how-to-create-logical-or-condition-in-javascript/

#javascript #or #logical #check

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension