Skip to content

Commit ae11710

Browse files
authored
Merge pull request #1970 from rromanenko/patch-1
Update article.md
2 parents 668207b + edfe300 commit ae11710

File tree

1 file changed

+1
-1
lines changed
  • 1-js/04-object-basics/09-object-toprimitive

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ There are three variants of type conversion, so-called "hints", described in the
4646
`"default"`
4747
: Occurs in rare cases when the operator is "not sure" what type to expect.
4848

49-
For instance, binary plus `+` can work both with strings (concatenates them) and numbers (adds them), so both strings and numbers would do. So if the a binary plus gets an object as an argument, it uses the `"default"` hint to convert it.
49+
For instance, binary plus `+` can work both with strings (concatenates them) and numbers (adds them), so both strings and numbers would do. So if a binary plus gets an object as an argument, it uses the `"default"` hint to convert it.
5050

5151
Also, if an object is compared using `==` with a string, number or a symbol, it's also unclear which conversion should be done, so the `"default"` hint is used.
5252

0 commit comments

Comments
 (0)