Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

基础题,直接写出答案 #146

Open
sisterAn opened this issue Feb 17, 2021 · 2 comments
Open

基础题,直接写出答案 #146

sisterAn opened this issue Feb 17, 2021 · 2 comments
Labels

Comments

@sisterAn
Copy link
Owner

let x = [1, 2, 3];
let y = x;
let z = [4, 5, 6];
y[0] = 10;
y = z;
z[1] = 20;
x[2] = z = 30;
console.log(x, y, z);
@U-LAN
Copy link

U-LAN commented Feb 25, 2021

[10,2,30] [4,20,6] 30

@xllpiupiu
Copy link

x-->[1,2,3]
y=x 
y-->[1,2,3]
z-->[4,5,6]
y[0]=10
[10,2,3]  
y-->[4,5,6]
z[1] = 20
[4,20,6]
z=30
x[2]=z
[10,2,30]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants