Skip to content

Instantly share code, notes, and snippets.

@joaogolias
Created October 30, 2018 15:44
Show Gist options
  • Save joaogolias/171d92629bc05dede80aea6f3cbc7877 to your computer and use it in GitHub Desktop.
Save joaogolias/171d92629bc05dede80aea6f3cbc7877 to your computer and use it in GitHub Desktop.
let comparison: boolean
comparison = 1 == true // => true
comparison = 1 === true // => false
comparison = 0 == false // => true
comparison = 0 === false // => false
comparison = '1' == 1 // => true
comparison = '1' === 1 // => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment