Adding two commas to sentence (#20077)
This commit is contained in:
committed by
Christopher McCormack
parent
c90ec7819d
commit
e075b7daba
@ -6,7 +6,7 @@ title: 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 datatype 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:
|
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:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var a = 'a string';
|
var a = 'a string';
|
||||||
|
Reference in New Issue
Block a user