Dev.bg: All in One ’24 – Lab08 Frontend Question №6

Which of the following statements is true about primitives and reference types in JavaScript?

A) Primitives are passed by reference.

B) Reference types are immutable.

C) Primitives are stored in the stack, while reference types are stored in the heap.

D) All variables are stored in the stack.