News for hackers. Stuff that matters.
Re:Goodbye “undefined is not a function” by eyko on Sunday February 22, 2015 @08:14PM (#9092034)
If bar() or fiz() return undefined (i.e. don't return at all), then you will still get the same error as usual undefined is not an object, I reckon.
Re:Goodbye “undefined is not a function” by saraid216 on Sunday February 22, 2015 @10:11PM (#9092342)
The issue isn't that the functions are returning undefined. It's...

  foo = {}
  foo.bar()
Or, more commonly,

  foo = {};
  bar = 'bar';
  foo[bar]();