SAI YEWALE

Generation

typingsThu, 15 Dec 2022

regular expression for mobile no. length must be 10 in js

const validateMobileNo = mobileNo => /^\d{10}$/.test(mobileNo);

Questions about programming?Chat with your personal AI assistant