You don't have to find the body by tag name. This code will give you a reference to the element of the current HTML document, which you can then manipulate or access as needed in your JavaScript code.
Source code viewer
const bodyElement = document.body;Programming Language: ECMAScript