48
Comments
  • 10
    > 'this' instanceof String
    false

    > typeof 'this'
    'string'

    > typeof String('this')
    'string'

    > String('this') === 'this'
    true

    Whoever made JavaScript should be beaten, savagely
  • 3
    Nope, I dont want to relate...

    Oh shit, I can relate...
    sigh...
  • 2
    Tried to like this post. Accidentally subscribed to supporter program
  • 3
    @jimbobbles instanceof and typeof are two different concepts, otherwise they didn't deserve two different operators lol
  • 1
    @jimbobbles What's the problem in this particular example? Looks good to me.
  • 3
    @crisz Fair enough. I doff my cap to you sir!

    I just like poking fun at JavaScript because I don't have to use it :p Here's another one:

    > Math.max()>Math.min()
    false

    > Math.max()<Math.min()
    true
  • 1
    This is a statement, not a story.
Add Comment