you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 2 years ago (2 children)

Weren't you getting runtime errors for the function not being found?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 2 years ago (1 child)

    No, they were probably getting false every time

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago* (1 child)

    Falsy* because it was undefined

    However, their IDE should have highlighted it as an unknown property. Guess this guy is coding in notepad or vi.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago (1 child)

    Yep, thanks for correcting me. In fact, if they write something like

    if (day.isWeekend) {...}
    

    The block will never be executed with the old version of library

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago (1 child)

    Yeah that's exactly what I think happened to him. He needs a better IDE and/or needs to stop copy/pasting code from stackoverflow or documentation that doesn't match his library version.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 0 points 2 years ago

    My dude, you need to understand that all that anger and resentment, it is not you. It's the years of JavaScript poisoning your mind.

    In any case, that goes to my point. I would have to be saved by my IDE, when any sane language will blow up in your face as soon as you try to run it.

  • source
  • parent