Write an MDN article explaining the various equality operators and functions in JavaScript

RESOLVED FIXED

Status

Developer Documentation
JavaScript
P4
normal
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: sheppy, Assigned: crussell)

Tracking

Details

(Whiteboard: u=webdev p=2 c=JavaScript)

(Reporter)

Description

5 years ago
:: Developer Documentation Request

      Request Type: New Documentation
     Gecko Version: unspecified
 Technical Contact: 

:: Details

JavaScript has the == and === operators, as well as in ES6 the Object.is() function. We should have an article on MDN that explains these and how they're different, as well as possible use cases for each.
(Reporter)

Updated

5 years ago
Assignee: nobody → jwalden+bmo
(Reporter)

Updated

5 years ago
Whiteboard: u=webdev p=0
(Reporter)

Updated

5 years ago
Priority: P5 → P4
Whiteboard: u=webdev p=0 → u=webdev p=2 c=JavaScript

Comment 1

5 years ago
Probably this is not sufficient, but I've added the following sentence to "Expressions and operators":

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators$compare?to=422537&from=418583
I wrote a thing:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Sameness
Assignee: jwalden+bmo → Sevenspade
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED

Comment 3

4 years ago
(In reply to Colby Russell :crussell from comment #2)
> I wrote a thing:
> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Sameness
Woah ! Excellent ! Thanks!
> 11:40 < crussell> someone add JavaScript/Guide/Sameness to
>       https://developer.mozilla.org/en-US/docs/Template:JSGChapters, please
> 11:40 < crussell> after "Expressions and Operators"

^ Do that, please.
Done (though the page using this template will need to be regenerated by ashift-reload)
You need to log in before you can comment on or make changes to this bug.