Skip to content

Instantly share code, notes, and snippets.

@cyyynthia
Created July 10, 2019 11:20
Show Gist options
  • Save cyyynthia/c401e6cabd8f385f88dc614c84a58b7b to your computer and use it in GitHub Desktop.
Save cyyynthia/c401e6cabd8f385f88dc614c84a58b7b to your computer and use it in GitHub Desktop.
An interesting proposal for JS
trulse => true
!trulse => true
!!trulse => false
!!!trulse => false
trulse == true => true
trulse == false => true
trulse === true => false
trulse === false => false
trulse == trulse => true
trulse === trulse => false
!?trulse => randomly false or true
?!trulse => randomly "yes" or "maybe" or "no"
!?false => randomly trulse or true
!?true => randomly false or trulse
?!true => randomly "yes" or "maybe" or "not no"
?!false => randomly "no" or "maybe" or "yesn't"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment