[Solved] How do I relay First Name to the right of Hello after a user enters it? [closed]


If you are just looking to populate an element with the return from two prompts i think this will fit your needs.

function greeting() {   
    var firstName, lastName;

    firstName = prompt("Enter your First Name"); 
    lastName = prompt("Enter your Last Name");

    var greetingDiv = document.getElementById('greeting'); 
    greetingDiv.innerHTML = firstName + " " + lastName;
}

greeting();

1

solved How do I relay First Name to the right of Hello after a user enters it? [closed]