Ad
  • Custom User Avatar

    Your code doesn't run anywhere, since you wrote the last operator the wrong way around.
    If that's fixed, it will still not work, as you return undefined instead of 0 when there are no sheep.