You have to check if the number is a valid number, every time the user submits the prompt.
Using a while loop is also a very good idea.
let myNumber = parseInt(prompt('Enter a number'));
const myName = prompt('Enter your name');
while (isNaN(myNumber)) {
myNumber = parseInt(prompt('Please enter a valid number!'));
};
console.log(`myNumber is ${myNumber}`);
console.log(`myName is ${myName}`);
The while loop will continuously check to see if the input from the prompt can be converted into a number, without yielding NaN after the parseInt() function.
The string literals are just an easier way to concatenate the strings, especially when talking about using numbers and "+". It is simply a cleaner way. However both ways are possible.