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
650650an array which could easily cause bugs elsewhere.
651651
652652Suppose 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
655655uses that same ` cart ` array will be affected by this addition. That may be
656656great, however it could also be bad. Let's imagine a bad situation:
657657
You can’t perform that action at this time.
0 commit comments