The Code Page


                
function displayMessage(){

    let msg = document.getElementById("message").value;

    (msg.length == "") ? msg = "Enter Something... Anything!!" : null;

    alert(msg);

}
                
            

The code is structured in one function.

displayMessage()

 Prints out your message!