Комментарии:
Why did you do memory address: 0x12345 for both the flight identifier and the person object? They should have different stack addresses.
ОтветитьAs a point from yestedays video, I noted that you said a value type stores the identifiers primative type directly. But you also said that it stores the address on the stack that the value type points to. Which is it?
ОтветитьThank you Sir ❤
Ответитьsirr why you gave up nodejs series in the middle of it 😭😭
ОтветитьStrings cannot be stored in the stack because the stack can store up to 64 bits. A strings are stored either in the program binary as a constant at a fix address, or in the heap, and the stack points to that heap address. I think strings in JavaScript are always immutable constant so for the same literal the address in the stack remains the same.
Ответить