How can i make a try catch block in javascript to verify if a name length is less than 2 or contains numbers in it?

前端 未结 0 922
北恋
北恋 2020-12-06 15:11

I try to make a try catch block to verify if the string name and surname from my set methods contains less than 2 characters or numbers in it and in this case to show an ale

相关标签:
回答
  • 消灭零回复
提交回复
热议问题