Skip to content

Commit 8db9b4e

Browse files
authored
Update article.md
1 parent a6cd073 commit 8db9b4e

File tree

1 file changed

+2
-8
lines changed
  • 1-js/05-data-types/01-primitives-methods

1 file changed

+2
-8
lines changed

1-js/05-data-types/01-primitives-methods/article.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,10 @@ if (cero) { // cero es true, porque es un objeto
104104
}
105105
```
106106

107-
<<<<<<< HEAD
108-
Por otro lado, usar las mismas funciones `String/Number/Boolean` sin `new` es totalmente sano y útil. Ellas convierten un valor al tipo correspondiente: a un string, number, o boolean (primitivo).
107+
Por otro lado, usar las mismas funciones `String/Number/Boolean` sin `new` es totalmente sano y útil. Ellas convierten un valor al tipo primitivo correspondiente: a un string, number, o boolean.
109108

110-
Por ejemplo, esto es perfectamente válido::
111-
=======
112-
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).
109+
Por ejemplo, esto es perfectamente válido:
113110

114-
For example, this is entirely valid:
115-
116-
>>>>>>> 7bb6066eb6ea3a030b875cdc75433c458f80997e
117111
```js
118112
let num = Number("123"); // convierte string a number
119113
```

0 commit comments

Comments
 (0)