@[email protected] to Programmer [email protected] • 8 months agothe hardest exam questionlemmy.mlimagemessage-square121fedilinkarrow-up1716arrow-down122
arrow-up1694arrow-down1imagethe hardest exam questionlemmy.ml@[email protected] to Programmer [email protected] • 8 months agomessage-square121fedilink
minus-square@[email protected]linkfedilink7•8 months agoNo, they were probably getting false every time
minus-squareshastaxclinkfedilink1•edit-28 months agoFalsy* because it was undefined However, their IDE should have highlighted it as an unknown property. Guess this guy is coding in notepad or vi.
minus-square@[email protected]linkfedilink2•8 months agoYep, 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
minus-squareshastaxclinkfedilink2•8 months agoYeah 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.
minus-square@ByteJunklink0•8 months agoMy 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.
No, they were probably getting false every time
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.
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
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.
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.