#chatgpt3 is still learning πŸ‘€ keep your eyes open.

Channel:
Subscribers:
11,400
Published on ● Video Link: https://www.youtube.com/watch?v=Y3EE0svhAKY



Duration: 7:33
37 views
3


here are the sequence of questions I asked:-

1) explain me the internal working of JavaScript v8 engine.
2) can you tell me exactly how the mark-and-sweep technique works?
3) and how does GC identify which object is live?
4) can you write a code example in js to demonstrate this process of Tracing.
#NOTE here I intently made a contextual mistake by writing "still an object" instead of "still a live object"
5) in this example isn't obj3 still an object? as it is associated with obj2 it's just that it's assigned value is null
6) pardon me but I'm still unable to understand how come obj3 is not referenced by obj2 as there's no code written that is removing obj2 referencing obj3 it's just that obj3 is assigned a new value that is null
7) no issues, can you write a new code improving your previous code example now?
8) in your first example as the value that was assigned to obj3 was {e: 5, f: 6} but when you reassigned it the new value that is "null" what will happen to the previous ({e: 5, f: 6}) object? will GC collect it and clear the memory, or it will hold it?