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:
Sem Bauke
2025-09-05 21:04:05 +02:00
committed by GitHub
parent c2ff82ed9a
commit e4144d145a
5 changed files with 118 additions and 0 deletions
+6
View File
@@ -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.