4 ms·
This was my first thought as well. If he instead initializes: var result = ""; and checks for: if (result.length === 0) { ... in the third condi
by jpeterson 15y ago
This was my first thought as well. If he instead initializes:
var result = "";
and checks for:
if (result.length === 0) {
...
in the third conditional, is there still a bug?
- AshFurrow 15y agoYes, he specifies the conditional is "examine the variable result; if it is still null ..."