every Answers All
every Answers All
every returns true only when all items pass the callback test. A single failing item makes the whole result false.
This is useful for validation, permission checks, and readiness gates. The caller does not need the fields themselves; it needs to know whether the full set is acceptable.
Your task: Complete canSubmitProfile so it returns whether every required field has a non-empty string value after trimming whitespace.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
every Answers All
every returns true only when all items pass the callback test. A single failing item makes the whole result false.
This is useful for validation, permission checks, and readiness gates. The caller does not need the fields themselves; it needs to know whether the full set is acceptable.
Your task: Complete canSubmitProfile so it returns whether every required field has a non-empty string value after trimming whitespace.