Function can alter only Mutable data types? true or false
Answers
Function can alter only in MUTABLE DATA TYPES...UR ANSWER IS RIGHT SO IT'S TRUE
Answer:
The function can alter only Mutable data types, this is true.
Explanation:
A mutable object is one whose value can change. Immutable objects are those whose value is fixed once they are formed. Only the identities of the contained objects are implied when discussing a container's mutability.
What type of data is mutable?
Variables that can be modified are known as mutable variables. Only objects and arrays, not raw values, are modifiable in JavaScript. A variable name can be changed to point to a different value, but the preceding value is retained in memory. In Python, mutable data types include user-defined classes, dictionaries, sets, and lists. The immutable data types, on the other hand, include int, float, decimal, bool, string, tuple, and range.
Thus, a fancy way of saying that an item is mutable is that its internal state has changed or been altered.