function nameValueFunc(event) {
  const nameValue = (event.target.value);
  if (nameValue.length < 3) {
    inputError(nameInput, 2);
  }
  if (nameValue.length > 30) {
    inputError(nameInput, 3);
  }
  if (nameValue.length >= 3 && nameValue.length <= 30) {
    if (nameRegex.test(nameValue)) {
      inputError(nameInput, 0);
    } else {
      inputGood(nameInput, 0);
    }
  }
}
// and the characters in the Name value match the regex
and the characters in the Name value match the regex
and the characters in the Name value match the regex
function nameValueFunc(event) {
  const nameValue = (event.target.value);
  if (nameValue.length < 3) {
    inputError(nameInput, 2);
  }
  if (nameValue.length > 30) {
    inputError(nameInput, 3);
  }
  if (nameValue.length >= 3 && nameValue.length <= 30) {
    if (nameRegex.test(nameValue)) {
      inputError(nameInput, 0);
    } else {
      inputGood(nameInput, 0);
    }
  }
}
function nameValueFunc ( event ) { const nameValue = ( event . target . value ) ; if ( nameValue . length < 3 ) { inputError ( nameInput , 2 ) ; } if ( nameValue . length > 30 ) { inputError ( nameInput , 3 ) ; } if ( nameValue . length >= 3 && nameValue . length <= 30 ) { if ( nameRegex . test ( nameValue ) ) { inputError ( nameInput , 0 ) ; } else { inputGood ( nameInput , 0 ) ; } } }
and the characters in the Name value match the regex
and the characters in the Name value match the regex