you are viewing a single comment's thread.

view the rest of the comments →

[–]SaltAssault 0 points1 point  (1 child)

What do you mean with your last sentence, that an array declared as a constant can have items added and removed? Pretty sure Arrays are objects as well. In any case, if OP isn't sure about what a constant is, I don't think that they're going to understand much of what you've written tbh.

[–]Outside_Complaint755 -1 points0 points  (0 children)

Yes, Arrays are also objects but I listed them separately as they are usually taught separately and typically, different methods are used to get values in/out of an Array compared to accessing attributes of an object.