Update article.md

This commit is contained in:
joaquinelio 2022-06-09 12:49:52 -03:00 committed by GitHub
parent 00689d3b0c
commit e8853e62d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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:
```js