SAI YEWALE

Generation

typingsThu, 15 Dec 2022

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

function isMobile(n){ var phoneno = /^\d{10}$/; if(n.match(phoneno)) return true; else return false; }

Questions about programming?Chat with your personal AI assistant