Skip to content

Commit 3cad456

Browse files
authored
Merge pull request #259 from omerfruk/patch-10
Update article.md
2 parents 9ccb0ed + ffe1183 commit 3cad456

File tree

1 file changed

+0
-10
lines changed
  • 1-js/04-object-basics/05-object-toprimitive

1 file changed

+0
-10
lines changed

1-js/04-object-basics/05-object-toprimitive/article.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,6 @@ Eğer `Symbol.toPrimitive` ve `valueOf` yoksa `toString` metodu objeleri ilkel t
170170

171171
Bu ilkel değeri alan operatör işine devam eder ve eğer gerekliyse başka çeviriler de yapabilir.
172172

173-
```smart header="Historical notes"
174-
For historical reasons, if `toString` or `valueOf` returns an object, there's no error, but such value is ignored (like if the method didn't exist). That's because in ancient times there was no good "error" concept in JavaScript.
175-
176-
In contrast, `Symbol.toPrimitive` *must* return a primitive, otherwise there will be an error.
177-
```
178-
179-
## Further operations
180-
181-
An operation that initiated the conversion gets that primitive, and then continues to work with it, applying further conversions if necessary.
182-
183173
Örneğin:
184174

185175
- Matematiksel operatörler( binary toplama dışında) `ToNumber` çevrimini kullanır:

0 commit comments

Comments
 (0)