Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 2 : Compares both value and type without type coercion / प्रकार-रूपांतरण के बिना मान और प्रकार दोनों की तुलना करता है

Advertisement

Detailed Solution

सही उत्तर Compares both value and type without type coercion / प्रकार-रूपांतरण के बिना मान और प्रकार दोनों की तुलना करता है है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

In JavaScript, the strict equality operator === differs from == in that it / जावास्क्रिप्ट में सख्त समानता ऑपरेटर ===, == से इस प्रकार भिन्न है कि यह

1.
Also checks the data type during assignment / निर्दिष्टीकरण के दौरान डेटा प्रकार भी जाँचता है
2.
Compares both value and type without type coercion / प्रकार-रूपांतरण के बिना मान और प्रकार दोनों की तुलना करता है
3.
Assigns a value to a variable / चर को मान निर्दिष्ट करता है
4.
Behaves exactly like == in all cases / सभी स्थितियों में == जैसा ही व्यवहार करता है

Correct Answer: Compares both value and type without type coercion / प्रकार-रूपांतरण के बिना मान और प्रकार दोनों की तुलना करता है

=== requires same type and value with no coercion, while == converts types before comparing. / === बिना रूपांतरण के समान प्रकार और मान माँगता है, जबकि == तुलना से पहले प्रकार बदलता है।

Downloaded from PrepSnap (prepsnap.in)