8 ms·
The issue isn't that the functions are returning undefined. It's... foo = {} foo.bar() Or, more commonly, foo = {}; bar = 'bar'; foo[bar]();
by saraid216 12y ago
The issue isn't that the functions are returning undefined. It's...
foo = {}
foo.bar()
Or, more commonly,
foo = {};
bar = 'bar';
foo[bar]();