@mr chedda
The first one is too many !!
The second one, is funny, because I literally gave my example above. How could you see my example and come up with that?
If you mean “result in” is how the computer sees it, all of your examples, my examples and Ryan’s examples, are the same to the computer.
And if you mean “result in” is the way that I actually write it. I will write it again and hope you can get it
Lê.... Maybe it's because English is NOT your first language but the two statements I wrote are programmatically equivalent but your syntax is written in a more beginner way.
You likely WILL NOT see this in a production code base written by senior developers.
You likely WILL see this syntax in a production code base written by senior developers:
((!!a&&!!b&&!!c)||!!d)&&<Component/>
I don't know how I can make it any clearer.... the two statements are saying THE EXACT SAME THING... the difference is your suggestion using Boolean() would likely be written by a beginner programmer.
You wrote an example with multiple “Boolean()” and assume I came up with that, when in two of my examples, multiple variables inside just one “Boolean()”
repeated what I said about “the exact same thing”, yes the computer would understand them the same way, we’re talking about Coding style, the convenient of upgrading the code to more complex logic.
Didnt have any reply to my “too many !!”. Made an execuse the seniors are using it, production code.. bla bla
Personal attack about English not my native language, beginner level
Keep it up, you’re doing real great. Dont worry too much, I’ve been through many years of js development, your comments and your capital letters wont make me a beginner.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
@mr chedda
The first one is too many !!
The second one, is funny, because I literally gave my example above. How could you see my example and come up with that?
If you mean “result in” is how the computer sees it, all of your examples, my examples and Ryan’s examples, are the same to the computer.
And if you mean “result in” is the way that I actually write it. I will write it again and hope you can get it
Boolean((a && b && c) || d) &&
Lê.... Maybe it's because English is NOT your first language but the two statements I wrote are programmatically equivalent but your syntax is written in a more beginner way.
You likely WILL NOT see this in a production code base written by senior developers.
You likely WILL see this syntax in a production code base written by senior developers:
I don't know how I can make it any clearer.... the two statements are saying THE EXACT SAME THING... the difference is your suggestion using
Boolean()
would likely be written by a beginner programmer.So your comment is about:
You wrote an example with multiple “Boolean()” and assume I came up with that, when in two of my examples, multiple variables inside just one “Boolean()”
repeated what I said about “the exact same thing”, yes the computer would understand them the same way, we’re talking about Coding style, the convenient of upgrading the code to more complex logic.
Didnt have any reply to my “too many !!”. Made an execuse the seniors are using it, production code.. bla bla
Personal attack about English not my native language, beginner level
Keep it up, you’re doing real great. Dont worry too much, I’ve been through many years of js development, your comments and your capital letters wont make me a beginner.