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>