let yourName; do { yourName = prompt("Who are you?"); } while (!yourName); console.log(yourName);
This code is given in an online textbo