Yogesh Chavan
1 min readJan 31, 2020

--

Mickey Vashchinsky, good catch.. the output is different when passed 0 as second value because 0 is considered as falsy value in javascript. checkout my article HERE which explains this in detail.. I have updated this in the article.

--

--

Yogesh Chavan
Yogesh Chavan

No responses yet