-2
I made a "mini site" to ask the name of the person and send a alert but somehow I want to send a alert error if the person places numbers instead of the characters in the name.
<h2 class="Titulo">Bem Vindo</h2>
   <div id="Maincx">
       <div class="dados-pessoa">
           <label for="nome">Digite seu Nome</label>
           <input type="text" id="name" name="name">
           <button onclick="submit()">Enviar</button>
       </div>
   </div>`
function submit() {
  var input = document.getElementById('name');
  var texto = input.value;
  console.log("Nome inserido: " + texto);
  alert("Olá Sr. " + texto + " Balalaika");
    
}
only use typeof(text) will return string
– stack.cardoso