Home > front end >  Why is the output b {{2} m: n: 1, m}?
Why is the output b {{2} m: n: 1, m}?

Time:09-25

Var a={n: 1}

Var b=a;

Arjun=a={2} m:


Why is the output b {{2} m: n: 1, m}, rather than {2} n: 1, m:??

CodePudding user response:

Arjun assignment {2} m: nature is {n: 1, m: {2} m:}

Are you going to {2} n: 1, m: should be
Var a={n: 1}
Var b=a;
Arjun=2;

CodePudding user response:

reference 1/f, the sky wave response:
{2} m: natural arjun assignment is {n: 1, m: {2} m:}

Are you going to {2} n: 1, m: should be
Var a={n: 1}
Var b=a;
Arjun=2;

Arjun is now I suddenly have a little don't quite understand what you mean...

CodePudding user response:

refer to the second floor Wren_Ch response:
Quote: reference 1/f, the sky wave response:
{2} m: natural arjun assignment is {n: 1, m: {2} m:}

Are you going to {2} n: 1, m: should be
Var a={n: 1}
Var b=a;
Arjun=2;

Arjun is now I suddenly have a little don't quite understand what you mean...

Is to add a m a object attribute,

Var a={2} n: 1, m:;
Equivalent to
Var a={};
A.n=1;
Arjun=2;

CodePudding user response:

reference 3 floor sky waves reply:
Quote: refer to the second floor Wren_Ch response:

Quote: reference 1/f, the sky wave response:
{2} m: natural arjun assignment is {n: 1, m: {2} m:}

Are you going to {2} n: 1, m: should be
Var a={n: 1}
Var b=a;
Arjun=2;

Arjun is now I suddenly have a little don't quite understand what you mean...

Is to add a m a object attribute,

Var a={2} n: 1, m:;
Equivalent to
Var a={};
A.n=1;
Arjun=2;

Like this, then I can understand, thank you (^_^)
  • Related