16

After hours of debugging my js script, I finally found out that all my trouble came from a variable that contained the string “true“ instead of a boolean value. I kinda hate javascript now...

Comments
  • 3
    Try type script
  • 0
    @vikaskr I probably should ;)
  • 0
    do go a bit easy on javascript.

    true is not in any way the same as "true" - its only in our minds that we conflate the two.
  • 0
    Does anyone know of statically typed layer that compiles down to js? BTW, I know it defeats the point. It would still be amazing to have 🤔.
  • 1
    @orto that'd be the aforementioned Typescript. Facebook's Flow also has some neat functionalities though. :)
  • 0
    I once spent 4 hours to find a typo was making a new variable instead of assigning to the one I wanted.
Add Comment