Fix: Add MDN Strict Inequality Link
This commit is contained in:
@ -92,6 +92,7 @@ var links = {
|
|||||||
// ======== GENERAL JAVASCRIPT REFERENCES
|
// ======== GENERAL JAVASCRIPT REFERENCES
|
||||||
"Arithmetic Operators": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators",
|
"Arithmetic Operators": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators",
|
||||||
"Comparison Operators": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators",
|
"Comparison Operators": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators",
|
||||||
|
"Strict Inequality Operator": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators#Non-identity_strict_inequality_(!)",
|
||||||
"Details of the Object Model": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Details_of_the_Object_Model",
|
"Details of the Object Model": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Details_of_the_Object_Model",
|
||||||
"For Loops": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for",
|
"For Loops": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for",
|
||||||
"Truthy": "https://developer.mozilla.org/en-US/docs/Glossary/Truthy",
|
"Truthy": "https://developer.mozilla.org/en-US/docs/Glossary/Truthy",
|
||||||
|
@ -3077,7 +3077,7 @@
|
|||||||
"id": "56533eb9ac21ba0edf2244d3",
|
"id": "56533eb9ac21ba0edf2244d3",
|
||||||
"title": "Comparison with the Strict Inequality Operator",
|
"title": "Comparison with the Strict Inequality Operator",
|
||||||
"description": [
|
"description": [
|
||||||
"The strict inequality operator (<code>!==</code>) is the opposite of the strict equality operator. It means \"Strictly Not Equal\" and returns <code>false</code> where strict equality would return <code>true</code> and <em>vice versa</em>. Strict inequality will not convert data types.",
|
"The strict inequality operator (<code>!==</code>) is the logical opposite of the strict equality operator. It means \"Strictly Not Equal\" and returns <code>false</code> where strict equality would return <code>true</code> and <em>vice versa</em>. Strict inequality will not convert data types.",
|
||||||
"<strong>Examples</strong>",
|
"<strong>Examples</strong>",
|
||||||
"<blockquote>3 !== 3 // false<br>3 !== '3' // true<br>4 !== 3 // true</blockquote>",
|
"<blockquote>3 !== 3 // false<br>3 !== '3' // true<br>4 !== 3 // true</blockquote>",
|
||||||
"<h4>Instructions</h4>",
|
"<h4>Instructions</h4>",
|
||||||
@ -3104,6 +3104,9 @@
|
|||||||
"solutions": [
|
"solutions": [
|
||||||
"function testStrictNotEqual(val) {\n if (val !== 17) {\n return \"Not Equal\";\n }\n return \"Equal\";\n}"
|
"function testStrictNotEqual(val) {\n if (val !== 17) {\n return \"Not Equal\";\n }\n return \"Equal\";\n}"
|
||||||
],
|
],
|
||||||
|
"MDNlinks": [
|
||||||
|
"Strict Inequality Operator"
|
||||||
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
"assert(testStrictNotEqual(17) === \"Equal\", 'message: <code>testStrictNotEqual(17)</code> should return \"Equal\"');",
|
"assert(testStrictNotEqual(17) === \"Equal\", 'message: <code>testStrictNotEqual(17)</code> should return \"Equal\"');",
|
||||||
"assert(testStrictNotEqual(\"17\") === \"Not Equal\", 'message: <code>testStrictNotEqual(\"17\")</code> should return \"Not Equal\"');",
|
"assert(testStrictNotEqual(\"17\") === \"Not Equal\", 'message: <code>testStrictNotEqual(\"17\")</code> should return \"Not Equal\"');",
|
||||||
|
Reference in New Issue
Block a user