Message from JavaScript discussions

November 2020

β€” So B and C are in A?

β€” 

Language:

js


Source:
let a = {b: 0, c: 1};
a.b = {b: a.c, c: a.b};
a.c = a.b.c
a.b = a.b.b
console.log(a);


Result:
{ b: 1, c: 0 }

β€” Best I can think of

β€” Futile, futileπŸ˜‘ give up trying

β€” Some pupils over-complicate.. others masquerade their code, the lack of attention to the base and origin is the reason🀀

A = B
B = C
C = A

Message permanent page

β€” Wait, wasn't A parent of B and C?

β€” Where.. the homework is clearly defined i think

β€” That is what I understand from this image

β€” The image is about scopes.. but the approach is similar

β€” Things may be similar but not equal

β€” Https://pastebin.com/JUDQENh5

β€” This took a while and still isn't done.