Consider following snippet:
 var myObj = { name: "alex", }; console.log( myObj.hasOwnProperty('name') ); 
What will be printed to the console?
Explanation
Method hasOwnProperty return a boolean showing whether the object has the specified property.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по JavaScript
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты