DEV Community

Discussion on: JavaScript Quiz Question #1: Array Sort Comparison

Collapse
yogeshmedz profile image
YogeshMedz

B). true true false
Because === is used for comparison between two variables but this will check strict type, which means it will check datatype and compare two values and == is used for comparison between two variables irrespective of the datatype of variable.

Collapse
hongquangraem profile image
Comment marked as low quality/non-constructive by the community. View Code of Conduct
hongquangraem

c