Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `countErrors(errors)` returning the number of fields in the errors object.
+ 1 hidden test run on Submit.
The number of error fields is just the count of keys, handy for disabling a submit button while errors remain.
Run your code to see results.