let text = prompt("What's your name?"); if (text !== "") { alert(`Your name is: ${text}`); } else { alert(`Name cannot be empty`) }