Why printErr() of variable that stores zero doesn't do anything?

Hi there! Im just curious to know why printErr input with ‘zero’ variables doesnt work? Some times it can be useful. Thanks

what language is it?

I bet it’s JS:

printErr(false) // does not work.
                // 0 == false
printErr(0)     // does not work neither.


1 Like

Yes, you`re right, its on JS