← All tasks
What you'll do
Write the PHP expression that merges $defaults and $overrides into a new array using the spread operator, with $overrides taking precedence.
Scenario
You're combining a config's defaults with user-supplied overrides.
Ready to try it?
Create a free account and subscribe to take "Write a Spread Operator Expression to Merge Arrays". Earn 90 XP and track your internship progress.
Already have an account? Sign in