-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapter: Values #7
Comments
It doesn't seem to deal with the BigInt type. |
@VenkateswaraT See the warning at the end of this section: https://exploringjs.com/impatient-js/ch_console.html#trying-out-code Quote:
|
@srcdes: BigInt is an ES2020 feature. It’ll be covered in the next edition. This is a preview of that content: https://2ality.com/2017/03/es-integer.html |
The final example in this chapter of
typeof parseInt(123.45)
"number" Thanks for all your hard work and this awesome book. |
Thank you for this book, it's the first time I have tried to learn JavaScript properly, rather than writing code until it works. I feel that section 12.4.1.2 would make a stronger illustration about copying values if a third line is inserted into the code example: Without it, the code example doesn't drive home the point that the values are now separate, and I had to test in the console to confirm it was the case. |
@Jamoverjelly The book is correct, but the explanation is too short and easy to misunderstand. The next release will have a longer explanation: |
@pbowyer That’s a very good point. Alas, finding a good example is difficult in this case: Even your additional line works the same with objects (if we compare them deeply/by value). Adding a comment to my example may help: const x = 123;
const y = x;
// `y` is the same as any other number 123
assert.equal(y, 123); |
No description provided.
The text was updated successfully, but these errors were encountered: