how to console.log while using a prompt in javascript
var name = prompt("Name?");
console.log("Hello " + name);
// Force a 10 millisecond delay before running the rest of the code.
setTimeout(function(){
var age = prompt("Age?");
console.log(name + " is " + age + " years old");
}, 10);