You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// we use pointers when we want to modify the original value. for example, the length method just gets the length of a string so it's fine to operate on a copy of a struct
// however the Pop() method modifies an array, so we'd use a pointer to make sure our changes are recorded on the original struct and not on a copy: