News for hackers. Stuff that matters.
Re:Getting Started with Algorithmic Cryptocurrency Trading by RandomInteger4 on Sunday January 14, 2018 @07:33PM (#16147534)
This isn't a javascript problem. They were trying to be too clever and test whether a value was set in the same statement where that value was used for a comparison.

The non-truthiness of 0 is something present in many languages.

Re:Getting Started with Algorithmic Cryptocurrency Trading by paulgb on Sunday January 14, 2018 @08:07PM (#16147666)
It's not specific to JavaScript (I've made the same bug in python), but it should be a sign that a language designed to make websites interactive fulfills different requirements than a language designed for building real money trading systems.
Re:Getting Started with Algorithmic Cryptocurrency Trading by RandomInteger4 on Sunday January 14, 2018 @10:30PM (#16148302)
Maybe, or maybe people just need to be less clever with their code?