Primitive data types and reference data types

Primitive data types to create a way

Direct amount / literals var num = 1;

Digital object var num = new Number (1);

Primitive data types can not operate property ReadProperty 

When we read the property will undergo a process is the new Number (1), to convert the literal type object type, then read property.

But can not add or modify, a process will be carried out now new Number () to add a property above and then execute delete statement

This process is known as: packaging process.

Guess you like

Origin www.cnblogs.com/zhangchs/p/11067646.html