-
-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Labels
Description
Currently, there is no material on creating and/or copying JavaScript objects in the Objects module, with one exception: this lesson on deleting properties from objects, which briefly shows how to copy an object with excluded properties using the spread operator. While campers could deduce that the same technique works for copying an entire object, they might not fully understand why it works. Furthermore, current coding challenges in the module require creating an object from scratch, and at least one incoming lab will require campers to copy and return new objects.
Should we create a new lesson that covers creating objects from scratch as well as copying (spread operator for shallow copies and structuredClone for true deep copies)?
Reactions are currently unavailable