CJCoding With Joseph
← Back to Question List
JavaScript Code Walkthrough #28

Loose Equality Coercion

hardOperators

📄 Code

Read carefully — what does this print?
1console.log(0 == "");
2console.log(0 == "0");
3console.log("" == "0");
4console.log(1 == true);

🎯 Your Answer