--- id: 56533eb9ac21ba0edf2244d3 title: Comparison with the Strict Inequality Operator challengeType: 1 videoUrl: '' localeTitle: مقارنة مع مشغل عدم المساواة الصارم --- ## Description
إن عامل عدم المساواة الصارم ( !== ) هو المقابل المنطقي للمشغل الصارم للمساواة. ويعني "عدم التساوي في الدقة" ويعود false حيث تعود المساواة الصارمة إلى true والعكس صحيح . عدم المساواة الصارمة لن تقوم بتحويل أنواع البيانات. أمثلة
3! == 3 // false
3! == '3' // true
4! == 3 // صحيح
## Instructions
إضافة strict inequality operator إلى العبارة if بحيث تقوم الدالة بإرجاع "غير مساوي" عندما لا يكون val مساوياً تمامًا لـ 17
## Tests
```yml tests: - text: testStrictNotEqual(17) إرجاع "مساواة" testString: 'assert(testStrictNotEqual(17) === "Equal", "testStrictNotEqual(17) should return "Equal"");' - text: testStrictNotEqual("17") "غير مساوي" testString: 'assert(testStrictNotEqual("17") === "Not Equal", "testStrictNotEqual("17") should return "Not Equal"");' - text: يجب أن testStrictNotEqual(12) "غير مساوي" testString: 'assert(testStrictNotEqual(12) === "Not Equal", "testStrictNotEqual(12) should return "Not Equal"");' - text: testStrictNotEqual("bob") "غير مساوي" testString: 'assert(testStrictNotEqual("bob") === "Not Equal", "testStrictNotEqual("bob") should return "Not Equal"");' - text: يجب عليك استخدام !== المشغل testString: 'assert(code.match(/(val\s*!==\s*\d+)|(\d+\s*!==\s*val)/g).length > 0, "You should use the !== operator");' ```
## Challenge Seed
```js // Setup function testStrictNotEqual(val) { // Only Change Code Below this Line if (val) { // Only Change Code Above this Line return "Not Equal"; } return "Equal"; } // Change this value to test testStrictNotEqual(10); ```
## Solution
```js // solution required ```