work
This commit is contained in:
parent
1bffa43db4
commit
057783d216
373 changed files with 203 additions and 190 deletions
|
@ -1,19 +0,0 @@
|
|||
importance: 3
|
||||
|
||||
---
|
||||
|
||||
# Is array copied?
|
||||
|
||||
What this code is going to show?
|
||||
|
||||
```js
|
||||
let fruits = ["Apples", "Pear", "Orange"];
|
||||
|
||||
// push a new value into the "copy"
|
||||
let shoppingCart = fruits;
|
||||
shoppingCart.push("Banana");
|
||||
|
||||
// what's in fruits?
|
||||
alert( fruits.length ); // ?
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue