You can’t put anything in an alert box. As the name indicates, it’s an alert. You might be looking for a prompt which has an input text field, or confirm to get a true / false depending on user selection.
let foo = prompt('Type here');
let bar = confirm('Confirm or deny');
console.log(foo, bar);