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.