How to put it in form?

Want to put it in form. For example 2 html fields
And after clicking on button show: "Your name is “a”. Your age is: “b”; Help please to do it…

let a = prompt("Your name?",""),
b = prompt("yor age?",);

function user(name,age){
  console.log('Имя пользователя:' + name);
  console.log('Возраст: '+ age);
};

if (!a || !b) {
  console.log("Wrong input")
} else {
  user(a,b);
};