When i Declare an Object and inside of that object i made a property that holds a primitive value
so in this Example
const foo = {
firstName: 'bar'
}
where the bar actually stored is it points the specific memory on the stack then and the value in there or it stored as it is in a some address in the heap
New contributor
Yousef Dawood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1