JavaScript Operators
<!DOCTYPE html> <html> <body> <h2>Strict versus loose</h2> <script> console.log(5 === 5); // true same value and type console.log(5 === "5"); // false different types console.log(5 == "5"); // true string coerced to number console.log(0 == false); // true both coerced, surprising console.log(0 === false); // false different types </script> </body> </html>