Update article.md

This commit is contained in:
LeviDing 2020-11-15 21:46:06 +08:00 committed by GitHub
parent cb62d6d867
commit a39f437677
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ let array = [ john ];
john = null; // overwrite the reference john = null; // overwrite the reference
*!* *!*
// the object previously referenced by john is stored inside the array // the object previously referenced by john is stored inside the array
// therefore it won't be garbage-collected // therefore it won't be garbage-collected
// we can get it as array[0] // we can get it as array[0]
*/!* */!*