HTMLElement - Including quotation marks in string literals in script tag (in conditions and in variable assignments) crashes the HTMLElement

The below code does not crash. But, uncommenting either of the two commented lines completely prevents display of anything in the element with in the label (with Id “theLabel”). Anyone every dealt with this before or have any guidance?

<html>
<head>
<script type="text/javascript">
window.onmessage = (event) => {
    if (event.data) {  
        //var thingString = ”wait”
        var thing = 99;
        document.getElementById("theLabel").innerText = String(thing);
        //document.getElementById("theLabel").innerText = “yhyy”;
    }
};
function button_click() {
 window.parent.postMessage(document.getElementById("theMessage").value, "*");
}
</script>
</head>
<body>
<span id="theLabel" class="label"></span>
<br/><br/>
<button class="button" onclick="button_click()">< Send Message</button>
<br/><br/>
<input type="text" class="input" id="theMessage">
</body>
</html>

I tried to follow the tutorial here https://www.wix.com/corvid/forum/community-discussion/communicate-with-iframe-source-code which has a block like this

if (event.data == "WAIT") {
    console.log("WAIT");
}

which also crashes the code.

Any ideas?