Answer the question
In order to leave comments, you need to log in
Why return /^[A-Za-z0-9].{8,}/.test('Passw0rd'); returns false?
need to return false when
.test('')
has something other than [A-Za-z0-9] and if the string is less than 8 characters
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question