Good evening and sorry for the little objective title but I found it difficult to title this issue but let's go!
In an example element selector document.querySelector().anything
is the anything
attribute normally accepted? I can type anything in the place, potato, lobster and it will be accepted, if I do document.querySelector("#anyID").batata = "doce".
it works normally. It seems to me that the language automatically creates the potato index and assigns the string "sweet" to it ... what's the use of this in terms of programming?