en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

Introduce and explain the "falsy" term

Open manueljordan opened this issue 7 months ago • 3 comments

Hello

Huge thanks for your valuable tutorial, I am re-working with JS and because JS itself evolves I am refreshing my knowledge with your tutorial

Just in case in the following page

  • https://javascript.info/logical-operators

Appears many times the "falsy" term. I thought it was an error but actually it is a valid term in JS

It indicated at (and in other pages):

  • https://developer.mozilla.org/en-US/docs/Glossary/Falsy

Therefore consider in add a special note indicating why is used the "falsy" term and not "false" (as is expected at first glance)

Thanks for your understanding

manueljordan avatar Jun 08 '25 17:06 manueljordan

there is a cool explanation in the previous chapter

But I just found it. I missed it too when I read then when I translated the article, so I believe you are right. I added a PR with the internal link to it.

joaquinelio avatar Jun 12 '25 04:06 joaquinelio

Thanks for the polite reply

there is a cool explanation in the previous chapter

Understood, Yes, I checked the previous chapter according with your answer.

As a friendly suggestion consider to put that "explanation" in a special note block to highlight. And perhaps that same note should be repeat just once in the mentioned chapter by my side (It as a final reminder). I confirmed that the "falsy" term appears many times on other chapters

manueljordan avatar Jun 12 '25 14:06 manueljordan

I thought about a "smart header", it's a block like you suggest.

but the mainteiners are a little reluctant to add them and with a good reason, they should be special

so I added just a discrete internal link in the first appearance

and chatgpt agreed (little joke)

Image

joaquinelio avatar Jun 12 '25 19:06 joaquinelio