Python definitely has false zeros and a wider concept of false (empty strings, IIRC). I’d be surprised if javascript doesn’t automatic coercion of it to false as well, considering it do all other coercions in the most surprising way possible.
Which has led to some really weird behavior, like back in python 2.x where one of the time classes ended up false at utc midnight …