function call sequence in JavaScript

function firstMessage()
{
    alert("Here is the first message!");
    secondMessage();
    alert("And here is the third!");
}

function secondMessage()
{
    alert("And here is the second!");
}