Validate Form and Append to Table

Asked at Amazon · Coding & Leetcode-style Questions · Difficulty: Easy

Implement a form validation program with three fields: Name, Phone, and Email, each with its own validation criteria. When all fields are valid, append the form information to the bottom of a table; if validation fails, display an error message.

Loading the problem…