Skip to content

Instantly share code, notes, and snippets.

@devrsantos
Created February 21, 2022 11:28
Show Gist options
  • Save devrsantos/3d7d06e61a4de87ba344f18d59ff0f3f to your computer and use it in GitHub Desktop.
Save devrsantos/3d7d06e61a4de87ba344f18d59ff0f3f to your computer and use it in GitHub Desktop.
!true = false / !false = true / !!false = false / !!true = true / !1 = true / !!1 = false / !0 = false / !!0 = true / !!"" = false
let x = 5 ;
let y = 9;
x < 10 && x!==5 = false
x>9 || x===5 = true
!(x===y) = true
x = 10
y = "a"
y==="b" || x>= 10 = true
x = 3
y = 8
!(x == "3" || x === y) && !(y !== 8 && x <= y) = false
let str = ""
let msg = "haha!"
let eBonito = "false"
!((str || msg) && eBonito) = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment