Nodejs Why Does Function Sometimes Return 0 And Sometimes Return

Nodejs Why Does Function Sometimes Return 0 And Sometimes Return