why can't i change innerHTML
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>document</title>
    <style>
    </style>
</head>
<body>
  <div class="sa"></div>
    <script>
        var a = document.getElementsByClassName("sa").innerHTML;
         a = "hi";
        console.log(a);
       
    </script>
</body>
</html>
output : output
i can't even see the code snippets: code snippets-1, code snippets-2
where is wrong in this code?,I searched but couldn't find the result I wanted, I'm not even sure I'm asking the right question, it happens every time I see an example but not when I do,i scare of stop myself in the start.
I'm trying to write hi to the div and check the hi in the console as a result I can't see what I'm typing on the page but I see it in the console
 
     
     
    