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
Зареєструйся Зараз
або Підпишись на майбутні тести