mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(curriculum): add lab for building a symmetric difference function (#61950)
Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
This commit is contained in:
@@ -3486,6 +3486,12 @@
|
||||
"In this lab, you will create a function that finds the index at which a given number should be inserted into a sorted array to maintain the array's sorted order."
|
||||
]
|
||||
},
|
||||
"lab-symmetric-difference": {
|
||||
"title": "Build a Symmetric Difference Function",
|
||||
"intro": [
|
||||
"In this lab, you will practice using higher order functions to find the symmetric difference between two arrays."
|
||||
]
|
||||
},
|
||||
"review-javascript-higher-order-functions": {
|
||||
"title": "JavaScript Higher Order Functions Review",
|
||||
"intro": [
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Build a Symmetric Difference Function
|
||||
block: lab-symmetric-difference
|
||||
superBlock: full-stack-developer
|
||||
---
|
||||
|
||||
## Introduction to the Symmetric Difference Function
|
||||
|
||||
Compare two arrays and return a new array with any items only found in one of the two given arrays, but not both. In other words, return the symmetric difference of the two arrays.
|
||||
Reference in New Issue
Block a user