DEV Community

Discussion on: Weird behaviors of javascript: Primitive Types and Reference Types

Collapse
 
pentacular profile image
pentacular

Could you point out where 'reference types' are mentioned in the ecmascript spec?

I can't find it anywhere in the language specification.

Collapse
 
mutludev profile image
MutluDev

es5.github.io/#x8.7 this might help

Collapse
 
pentacular profile image
pentacular

It would if it talked about object references.

The references mentioned there are property references.

For example, in delete a.b; a.b is a reference.

"The Reference type is used to explain the behaviour of such operators as delete, typeof, and the assignment operators."

Can you find anything about 'reference types' that's relevant to object values or anything mentioned in this article?

To be specific, anywhere that supports the claim that objects, functions, and arrays are reference type values.