Use Date.parse()
to test date strings. As for testing alpha-numeric strings without regex, write a loop to go through the characters of the strings to see of a character is there that shouldn’t be.
solved Validation without regex
Use Date.parse()
to test date strings. As for testing alpha-numeric strings without regex, write a loop to go through the characters of the strings to see of a character is there that shouldn’t be.
solved Validation without regex