commit
7bb6066eb6
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ if (zero) { // zero is true, because it's an object
|
|||
}
|
||||
```
|
||||
|
||||
On the other hand, using the same functions `String/Number/Boolean` without `new` is totally same and useful thing. They convert a value to the corresponding type: to a string, a number, or a boolean (primitive).
|
||||
On the other hand, using the same functions `String/Number/Boolean` without `new` is totally fine and useful thing. They convert a value to the corresponding type: to a string, a number, or a boolean (primitive).
|
||||
|
||||
For example, this is entirely valid:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue