copies of the same class share their underlying data, meaning that changing one changes them all, whereas structs always have their own unique data, and changing a copy does not affect the others.
I found this explanation confusing until I took the test and realized the difference.
In JS, creating an object or class instance and assigning it to two different variables matches the “copy” semantics above (the variable is a reference to the object).
The “struct” behavior (by value) is how primitives work in JS (string, bool, etc.). Objects never work this way.
Day 12 over! #100DaysOfSwiftUI