I do not know what are you trying to grab from the HTML, but this line is trying to access the <body>
tag, and not the button.
It is okay to use this, but its recomended to declare each variable individually so other people can read it easily.
Yes, it is recommended to study DOM JS if you want to make your website interactive, and if you want to manipulate the HTML DOM.