...

/

Mutation and Shadowing

Mutation and Shadowing

We'll cover the following...

We’ve seen that mutation and shadowing can in some ways serve the same goal: making the same name mean different things at different points in your code. However, it’s important to remember that these are different concepts. For example, you can shadow an immutable variable with a mutable one:

Access this course and 1400+ top-rated courses and projects.