I'm experiencing some difficulties when attempting to add style to a specific class in Trailhead Salesforce. I have tried various methods listed below, but none of them seem to be working:
document.body.style.setWidth = 100%;
document.getElementsByClassName("overlay").setWidth = 100%;
document.querySelectorAll(".overlay").setWidth = 100%;
document.getElementById("sideNav").style.width = 100%;
What is the most effective way to apply styling when an event occurs in Trailhead Salesforce?