What does the javascript value type refer to
This article mainly shows you "what the javascript value type refers to". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn the article "what javascript value type refers to".
Description
1. A value type is a simple data type / basic data type, which stores the value itself in a variable in a stored procedure, so it is called a value type.
2. Five data types (value types): string, number, boolean, undefined, null.
Null is special, and the return type is object.
Example
/ / simple data type null / / returns an empty object object var empty = null; console.log (typeof empty); / / the use of null / / if a variable is defined as an object, but the assignment is uncertain, you can assign null to this variable at this time all the content of the article "what is the javascript value type", thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!