Frage im Vorstellungsgespräch bei Microsoft

Question 1: What is the difference between == and === in JavaScript?

Antwort im Vorstellungsgespräch

Anonym

25. Juli 2024

Answer: == is the equality operator that checks for value equality, performing type coercion if necessary. For example, 5 == '5' returns true because the string '5' is coerced to the number 5.