In the my script document is an object and querySelector is a method. But what is innerHTML? Is it a property?
document.querySelector('#heading').innerHTML = "Hello world";
If it is a property, how i can write my own properties and methods like that?