Assessment wanted for Form validation skill tests

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 :slight_smile:

1 Like

Congratulations, @horusofoz! :medal_sports:

Here are my comments:

  • Task 1: Subtask 1 is correct but you are missing solutions for Subtasks 2 and 3 (type and length restrictions)
  • Task 2: Correct :white_check_mark: Simplifications for the phone pattern: You could just use {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: [-. ]
  • Task 3: Correct :white_check_mark: Great work on all the additional stuff to create a complete form with validation :+1:

I hope that helps. As usual: Ask if something is unclear :blush:

Have a nice day,

1 Like

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 :slight_smile:

Once again, thanks mate.

1 Like

Great improvements!

I don’t see any. I think it’s as simple as it could be for these requirements. :slightly_smiling_face:

1 Like