5
Comments
  • 1
    I don't like JS personally but this does make sense. In C++ zero is false, in most higher level languages a blank string is also false, and because false is defined its not null or undefined.
  • 0
    @Letmecode It makes sense until the last line. Thats where it stops making sense.
  • 0
    @Letmecode I mean the last line of the example code. The string is not empty so why does JS want to flag it as false. White space added to a string should prevent this from happening.
Add Comment