Undefined
Undefined. There is only one value undefined
Null
There is only one value, null
Boolean
In JavaScript, as long as the logical expression does not return undefined or null, it is true.
Number
String
The char type does not exist in JavaScript.
String definitions can use single quotes or double quotes.
is returned in general.
In JavaScript, if a function does not declare a return value, it will return undefined by default.
If a return value is declared, then whatever is actually returned is what is returned.
alert(undefined==null);//true
In JavaScript, there are three types of casts:
Boolean(value)
Number(value)
String(value)
Generate using new method.
Some methods in js can be enumerated, but some cannot.
Using js built-in methods to determine whether it can be enumerated.