ISprototypeof ({}) в консоли Devtools будет выбросить TypeErrorJavascript

Форум по Javascript
Anonymous
ISprototypeof ({}) в консоли Devtools будет выбросить TypeError

Сообщение Anonymous »

Open devtools, paste isPrototypeOf({}); into console, run the code and you will get:

Uncaught TypeError: Cannot convert undefined or null to object

I think the error message tells us: this in iSprototypeof является неопределенным . Но почему? Почему эта замена не происходит в этой ситуации? Почему это не окно ?

Подробнее здесь: https://stackoverflow.com/questions/796 ... -typeerror

Вернуться в «Javascript»