Can I please get an assessment for my attempts at the Forms > Form Validation skill tests?
Skill Test 1 (Codepen)
Skill Test 2 (Codepen)
Skill Test 3 (Codepen)
Thank you
Can I please get an assessment for my attempts at the Forms > Form Validation skill tests?
Skill Test 1 (Codepen)
Skill Test 2 (Codepen)
Skill Test 3 (Codepen)
Thank you
Congratulations, @horusofoz!
Here are my comments:
{10}
for a fixed lenght. No need for escaping the characters in groups (as long as the hyphen is first or last. So this is fine: [-. ]
I hope that helps. As usual: Ask if something is unclear
Have a nice day,
Michael
Thank you Michael for the assessment and detailed feedback. It’s enabled me to go through and improve the work as follows:
Task 1
Added the types and length restrictions.
Task 2
I’ve updated the regex to use {10}
for the first accepted pattern and modified the second to use [ .-]
. The result is "[0-9]{10}|[0-9]{3}[ .-][0-9]{3}[ .-][0-9]{4}"
. Is there room for further practical improvement?
Task 3
Thanks
Once again, thanks mate.
Great improvements!
I don’t see any. I think it’s as simple as it could be for these requirements.