How do I take a users input and display a greeting on the screen using .textContent in javascript?

It's because the page reloads after the button was clicked. You can use prevent default to avoid that.

You can add prevent default in your function like this:

function greetingUser(event) {
    event.preventDefault()
    greet.textContent = `Nice to meet you, ${input.value}!`
}