Hy all i m facing the issue regarding getelement by className it didnt work in my vs code also document.queryselectorAll didnt work i have checked so many times but nothing work can you guys please look at the code and guide me thank you all
<body>
<div class="div">
    <h2>heading</h2>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ex, esse.</p>
    <button>submit</button>
</div>
<div class="div">
    <h2>heading</h2>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ex, esse.</p>
    <button>submit</button>
</div>
<script>
    let m = document.getElementsByClassName('div').style.margin = "200px"
</script>
 
     
    