Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!


I'm going to write a module for @elmlang that periodically spits "type of undefined is not a function" to the console, because I miss that.
— Kris Jenkins (@krisajenkins) 17 апреля 2015
var f1 = function(){console.log('f1');}
var a = ['f1','f2'];
window[a[0]](); // f1
window[a[1]](); //Uncaught TypeError: undefined is not a function
o = {};
o.n = 3;
o.f() // undefined is not a function
a.n() // number is not a function
o = {};
o.n = 3;
o.f() // o.f is not a function
a.n() // o.n is not a function
Устранение загадочной ошибки «undefined is not a function» в V8