fixed typo "datetype" to "data type" (#27384)
parent
b9d8bf9697
commit
2b03647e1e
|
@ -4,7 +4,7 @@ title: Boolean
|
|||
|
||||
## Boolean
|
||||
|
||||
Booleans are a primitive datatype commonly used in computer programming languages. By definition, a boolean has two possible values: `true` or `false`.
|
||||
Booleans are a primitive data type commonly used in computer programming languages. By definition, a boolean has two possible values: `true` or `false`.
|
||||
|
||||
In Javascript, there is often implicit type coercion to boolean. If, for example, you have an if statement which checks a certain expression, that expression will be coerced to a boolean:
|
||||
|
||||
|
|
Loading…
Reference in New Issue