Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_40639990/article/details/89502560
1. There are several basic data types
There are six basic data types, namely, number, string, undefined, null, boolean, symbol (es6 new type)
It is an object 2.null
Although Object typeof null is returned, but the object is not null, but a basic data types
3. basic data types and complex data types stored What is the difference
A stack memory storing basic data type is a value
There is a complex type of heap memory, the memory of that address
When we put the object assigned to a variable is actually the address of a copy, when one object changes, where an object will change