What is the original value of JavaScript
Today, the editor will share with you the relevant knowledge about what the original value of JavaScript is. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
The original value refers to a value that has no property or method.
The original data type refers to the data that has the original value.
JavaScript defines five raw data types:
String
Number
Boolean
Null
Undefined
The original values are immutable (they are hard-coded and therefore cannot be changed).
Assuming x = 3.14, you can change the value of x. However, you cannot change the value of 3.14.
Value type comment
"Hello" string "Hello" is always "Hello"
3.14 number 3.14 is always 3.14
True boolean true is always true
False boolean false is always false
Null null (object) null is always null
Undefined undefined undefined is always undefined
These are all the contents of the article "what is the original value of JavaScript?" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.