Skip to content

Commit 4679bb8

Browse files
authored
Fix Conflict 1/2/9
1 parent 344f8d8 commit 4679bb8

1 file changed

Lines changed: 4 additions & 18 deletions

File tree

1-js/02-first-steps/09-comparison/article.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
- يساوي: `a == b` ، يرجى ملاحظة أن علامة المساواة المزدوجة` = `تعني اختبار المساواة ، في حين أن كلمة واحدة` a = b` تعني تعيين أو مساواة .
1010
- لا تساوي. في الرياضيات يكون الترميز <code>&ne;</code> ،لكن في JavaScript تكتب هكذا <code>a != b</code>.
1111

12-
<<<<<<< HEAD
13-
في هذه المقالة سنتعلم المزيد عن الأنواع المختلفة من المقارنات ، وكيف تجعلها JavaScript ، بما في ذلك الخصائص المهمة.
14-
=======
15-
In this article we'll learn more about different types of comparisons, how JavaScript makes them, including important peculiarities.
12+
في هذه المقالة سنتعلم المزيد عن الأنواع المختلفة من المقارنات ، وكيف تجعلها JavaScript، بما في ذلك الخصائص المهمة.
1613

17-
At the end you'll find a good recipe to avoid "javascript quirks"-related issues.
18-
>>>>>>> 445bda39806050acd96f87166a7c97533a0c67e9
14+
في النهاية ستجد وصفة جيدة لتجنب المشاكل المتعلقة بـ "مراوغات JavaScript".
1915

2016
## Boolean هي النتيجة
2117

@@ -203,22 +199,12 @@ alert( undefined == 0 ); // false (3)
203199
- المقارنات `(1)` و `(2)` إرجاع `false` لأنه يتم تحويل` undefined` إلى `NaN` و` NaN` هي قيمة رقمية خاصة تُرجع `false` لجميع المقارنات.
204200
- تحقق المساواة `((3)` تُرجع `false` لأن` undefined` تساوي فقط `null` و` undefined` ولا قيمة أخرى.
205201

206-
<<<<<<< HEAD
207202
### تجنب المشاكل
208203

209204
لماذا راجعنا هذه الأمثلة؟ هل يجب أن نتذكر هذه الخصائص المميزة طوال الوقت؟ حسنًا ، ليس حقًا. في الواقع ، ستصبح هذه الأشياء الصعبة مألوفة تدريجيًا بمرور الوقت ، ولكن هناك طريقة صلبة للتهرب من المشاكل معها:
210205

211-
فقط تعامل مع أي مقارنة بـ "undefined / null" باستثناء المساواة الصارمة `===` مع رعاية استثنائية.
212-
213-
لا تستخدم المقارنات `> => <<=` مع متغير قد يكون `فارغًا / غير محدد` ، ما لم تكن متأكدًا حقًا مما تفعله. إذا كان المتغير يمكن أن يكون له هذه القيم ، تحقق منها بشكل منفصل.
214-
=======
215-
### Avoid problems
216-
217-
Why did we go over these examples? Should we remember these peculiarities all the time? Well, not really. Actually, these tricky things will gradually become familiar over time, but there's a solid way to avoid problems with them:
218-
219-
- Treat any comparison with `undefined/null` except the strict equality `===` with exceptional care.
220-
- Don't use comparisons `>= > < <=` with a variable which may be `null/undefined`, unless you're really sure of what you're doing. If a variable can have these values, check for them separately.
221-
>>>>>>> 445bda39806050acd96f87166a7c97533a0c67e9
206+
- فقط تعامل مع أي مقارنة بـ "undefined / null" باستثناء المساواة الصارمة `===` مع رعاية استثنائية.
207+
- لا تستخدم المقارنات `> => <<=` مع متغير قد يكون `فارغًا / غير محدد` ، ما لم تكن متأكدًا حقًا مما تفعله. إذا كان المتغير يمكن أن يكون له هذه القيم ، تحقق منها بشكل منفصل.
222208

223209
## ملخص
224210

0 commit comments

Comments
 (0)