I always wondered how JavaScript stores null
values internally. null
is different than any value. I imagine that the scope's variables are stored in some kind of array of structures, each structure corresponding to a variable. Does this structure has some kind of boolean property called "null"?
I would look for it myself in the V8 source code, but am am pretty lost in the C++ code :(
I couldn't find anything on Google. Most results were related to questions like "How to determine if variable is undefined or null?" or similar.