Guest User

Untitled

a guest
Jan 31st, 2015
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > '5' - 3
  2. 2        // weak typing + implicit conversions * headaches
  3. > '5' + 3
  4. '53'     // Because we all love consistency
  5. > '5' - '4'
  6. 1        // string - string * integer. What?
  7. > '5' + + '5'
  8. '55'
  9. > 'foo' + + 'foo'
  10. 'fooNaN' // Marvelous.
  11. > '5' + - '2'
  12. '5-2'
  13. > '5' + - + - - + - - + + - + - + - + - - - '-2'
  14. '52'     // Apparently it's ok
  15.  
  16. > var x * 3;
  17. > '5' + x - x
  18. 50
  19. > '5' - x + x
  20. 5      // Because fuck math
Advertisement
Add Comment
Please, Sign In to add comment