@IvanFdez01
Posted
Hi,
That's an excellent JS code in mi opinion, at this level at least. If I had to make an adjustment in the part where you mentioned you would struggle (how to block Submit when errors exist), I would carry a boolean
, either globally or through parameters, across all five functions. If in checkErrors() the value is false, then don't allow Submit. This way, you avoid looping in checkErrors().
I know it's not a big deal, but time costs can become important when working with larger data.
Cheers, great job.