Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jpeterson
on Jan 19, 2012
|
parent
|
context
|
favorite
| on:
Find the Bug in my Fizz Buzz Interview (2:47 video...
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
on Jan 19, 2012
[–]
Yes, he specifies the conditional is "examine the variable result; if it is still null ..."
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: