function greetUser(username) { if (username) { alert("Hello, " + username + "!"); } else { alert("Hello, Guest!"); } }