How to target an element using multiple class names with Javascript?

Solution:

Assuming this is the only element with this classname.

You can use the document query selector

const myElement = document.querySelector("body.admin-bar.mobmenu")

Should do the trick