This is true. Primitive data types are typically allocated to a stack. The stack is really just the data needed to execute a certain program, so the type of primitive data in the stack changes as different programs are executed in Javascript. For those who are not familiar with Java programming, there are eight different kinds of primitive data types in this programming language. They are boolean, byte, char, short, int, long, float, and double.
These data types have different abilities and different responsibilities in a program, but that would take a lot of explaining. There’s not enough room here to go into that, so for now, this is all you need to know about them: they are allocated to a stack when a program is executed.