File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -650,8 +650,8 @@ JavaScript function can change an object's properties or alter the contents of
650
650
an array which could easily cause bugs elsewhere.
651
651
652
652
Suppose there's a function that accepts an array parameter representing a
653
- shopping cart. If the function makes a change in that shopping cart array
654
- - by adding an item to purchase, for example - then any other function that
653
+ shopping cart. If the function makes a change in that shopping cart array -
654
+ by adding an item to purchase, for example - then any other function that
655
655
uses that same ` cart ` array will be affected by this addition. That may be
656
656
great, however it could also be bad. Let's imagine a bad situation:
657
657
You can’t perform that action at this time.
0 commit comments