File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1133,11 +1133,10 @@ Source: [MDN](https://developer.mozilla.org/en-US/docs/Glossary/Scope)
1133
1133
A variable is said to have been mutated when its initial value has changed afterwards.
1134
1134
1135
1135
``` js
1136
- var myVar = " Nick" ;
1137
- myVar = " John" // here myVar is being mutated
1138
-
1139
1136
var myArray = [];
1140
1137
myArray .push (" firstEl" ) // myArray is being mutated
1141
1138
```
1142
1139
1143
- A variable is said to be * immutable* if it can't be mutated.
1140
+ A variable is said to be * immutable* if it can't be mutated.
1141
+
1142
+ [ Check MDN Mutable article] ( https://developer.mozilla.org/en-US/docs/Glossary/Mutable ) for more details.
Original file line number Diff line number Diff line change @@ -1133,11 +1133,10 @@ Source: [MDN](https://developer.mozilla.org/en-US/docs/Glossary/Scope)
1133
1133
A variable is said to have been mutated when its initial value has changed afterwards.
1134
1134
1135
1135
``` js
1136
- var myVar = " Nick" ;
1137
- myVar = " John" // here myVar is being mutated
1138
-
1139
1136
var myArray = [];
1140
1137
myArray .push (" firstEl" ) // myArray is being mutated
1141
1138
```
1142
1139
1143
- A variable is said to be * immutable* if it can't be mutated.
1140
+ A variable is said to be * immutable* if it can't be mutated.
1141
+
1142
+ [ Check MDN Mutable article] ( https://developer.mozilla.org/en-US/docs/Glossary/Mutable ) for more details.
You can’t perform that action at this time.
0 commit comments