Closure

No error message in console.

The code is exactly as in the book. I only get the good bye and first hello, not the second hello as the book specifies.

Not sure what I did wrong. Thanks.
<!doctype html>

<html>

    <head>

        <meta charset="utf-8">

        <title>Closure</title>

        <style>

           

        </style>

    </head>

<body>

    <script>

       function youSayGoodbye() {

        alert("Good Bye!");   

        function andISayHello() {

               alert("Hello!");

        }

        return andISayHello;

       }

       let saySomething = youSayGoodbye();

       saySomething();

    </script>

</body>

</html>

There should only be one looking at the code. It’s possible there’s a typo in the book. It can be helpful to check for an errata for the book you’re using (if one exists).