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
=== is not opposite of !== #11763
Comments
It's not equal value and/or not equal type. See here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators I thinks the sentiment is still correct. But others can weigh in. |
We could re-write the instructions to reflect the and/or nature of
|
@Bouncey but isn't |
@dhcodes it is and it sort-of isn't The issue is with this line in our challenge instructions
Where the strict equality operator requires both type AND value to be equal to resolve as Describing it as the 'opposite' implys the type and value need to differ to reslove as true We could reword the instructions to reflect the difference of the strict inequality operator |
From a logic perspective, I think |
I agree with @dhcodes and @robbawebba. While I was writing out my argumentation, Rob did a much better job. The only exception is |
I'm not opposed to changing it; I am just unsure what rewrite would accomplish this without making it more confusing for the camper. Thanks for the example @systimotic. |
information removed No longer contributing |
I observed a lot of my friends do mistake in this logic.In most places people say !== is opposite of ===.So they assume the name of !== will be Not Equal value And Equal Type. as === is called Equal Value and Equal Type. Also in most cases learners are beginner so i think at least the name should be mentioned. It's just my suggestion. |
I possibly like the idea of adding the word 'logical' as in:
And then perhaps we add an MDN link to the site above? |
Yes.It is a good idea.....@dhcodes |
If anyone wants to take this up, you'll need to add the word
to make it:
and modify the MDN Links file to add a reference to the link below and then add the MDN link to the challenge: Note: MDN links are not currently working on staging so mirror the code of other challenges with MDN links as there is no way to currently test locally. |
I'd like to take this up, might need some help with the MDN links though, haven't done it before. |
Challenge Name
https://www.freecodecamp.com/challenges/comparison-with-the-strict-inequality-operator
Issue Description
Actually !== is not the opposite of the strict equality operator. === means equal value AND equal type. !== means not equal value Or not equal type.That means if one condition is true then the expression will return true.But for strict equality operator both condition must be true.I think these information should be provided.
Browser Information
The text was updated successfully, but these errors were encountered: