How do I retrieve and join() an array that is stored in a ?

The array is the result of a user interaction. The joined string will be displayed in another . I can’t get it to work. Thank you in advance for your help.

The array is the result of an user interaction. I can’t get it to work. Help, please.

<body>

  <script type="text/javascript">
     var storedArray = document.getElementById("myStoredARRAY").innerHTML;      

alert(storedArray);     
    
     var joinedQuote = storedArray.join("");
        
alert(joinedQuote);
        
  </script>
    
     myStoredARRAY
     <div id="myStoredARRAY">[,'B','x','f','b']</div>

</body>