Computer Science, asked by bruze999, 7 months ago

Function can alter only Mutable data types? true or false

Answers

Answered by Balarohith7brainly
7

Function can alter only in MUTABLE DATA TYPES...UR ANSWER IS RIGHT SO IT'S TRUE

Answered by Sahil3459
0

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.

Similar questions