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
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты