Why does not my code show up when I press the button?

My button does not work and i dont know if it has to do with spelling mistake or if i missed somthing.

I expected my code to ask a question of what your name is and then it would alert it.

<!DOCTYPE html>



    
    


<p>Hej!</p>
    <a href="Usefull_stuff.html">
    Home</a>
    <a href="Eheheh.html">
    Random Joke</a>
    <a href="LOL.html">
    Nothing special</a>
    alert("Welcome to my page");


</br>
</br>

<button onclick="Myfunction()">Quick question!</button>

<p></p>


    function myFunction() {
        let text;
        let name = prompt("What is your name", "Enter here");
        if (name == null || name == "") {
            text = "Please try again!";
        } else {
            text = "Nice name " + name + "! I like it";
            alert("Have a nice day!");
        }
        document.getElementById("alert function").innerHTML = text;
    }