alert(errors['email'][0]); <-- outputs 'email is invalid' alert(errors.length); <-- outputs '0'