Merge pull request #2942 from Rnbsov/patch-22

add comma
This commit is contained in:
Ilya Kantor 2022-04-14 06:20:10 +03:00 committed by GitHub
commit a3273fb3f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ alert(+user); // hint: number -> 1000
alert(user + 500); // hint: default -> 1500
```
As we can see from the code, `user` becomes a self-descriptive string or a money amount depending on the conversion. The single method `user[Symbol.toPrimitive]` handles all conversion cases.
As we can see from the code, `user` becomes a self-descriptive string or a money amount, depending on the conversion. The single method `user[Symbol.toPrimitive]` handles all conversion cases.
## toString/valueOf