'Symbols and cross realms

I found this example on the internet to understand cross realms and Symbols, however, I don't get the output the article states (both print false), am I replicating the example wrong? I want to try it because I want to learn about Symbols and cross kingdoms.

<body>
  <iframe srcdoc="<script>var sharedSymbol = Symbol.for('Shared symbol');</script>"></iframe>
  <script>
    const iframe = document.querySelector("iframe");
    const iframeWindow = iframe.contentWindow;

    // Will print false!
    console.log(iframeWindow.Symbol === Symbol);

    // But will print true!
    console.log(iframeWindow.sharedSymbol === Symbol.for("Shared symbol"));
  </script>
</body>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source