Chain Order Matters
Chain Order Matters
Each method in a chain receives the result of the method before it. If an early step transforms objects into strings, later steps can no longer read object properties.
That makes chain order a design decision, not decoration. Keep records while you still need their fields. Transform to the final display shape after the selection work is done.
Your task: Fix visibleLessonTitles so it returns titles for lessons that are both published and not archived. Keep the final result as an array of title strings.
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.
Chain Order Matters
Each method in a chain receives the result of the method before it. If an early step transforms objects into strings, later steps can no longer read object properties.
That makes chain order a design decision, not decoration. Keep records while you still need their fields. Transform to the final display shape after the selection work is done.
Your task: Fix visibleLessonTitles so it returns titles for lessons that are both published and not archived. Keep the final result as an array of title strings.