fix(learn): Possible semantic error in explanation comment (#39813)
* Possible semantic error "identical" generally means that both variables are linked to exact same array which is not the case: ``` thisArray !== thatArray ``` Maybe "similar" or other word could be used instead * Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-an-array-with-the-spread-operator.md Made the comment more accurate Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
parent
3131360318
commit
cc464a6e56
@ -14,7 +14,7 @@ In practice, we can use the spread operator to copy an array like so:
|
||||
let thisArray = [true, true, undefined, false, null];
|
||||
let thatArray = [...thisArray];
|
||||
// thatArray equals [true, true, undefined, false, null]
|
||||
// thisArray remains unchanged, and is identical to thatArray
|
||||
// thisArray remains unchanged and thatArray contains the same elements as thisArray
|
||||
```
|
||||
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user