I've been trying to understand how this
value is set in javascript, and found ECMAScript Language Specification pretty much helpful. I was reading section 8.7 reference specification type
and found that reference in ECMAScript is made of 3 component, base value
, referenced name
, strict reference flag
to understand section 11.2.3.
I can assume what are referenced name
and strict reference flag
from their name, but i don't understand what is the base value
. The document says that base value
is either undefined
, String
, Boolean
, Number
and Object
, but it does not say how it is set and what it is. I am guessing it is something similar to context object. Could anyone explain?