What is Hoisting in JavaScript?

Description:

== and === are comparison operators, but they behave differently.

Explanation:

  • == (loose equality) converts operands before comparison.

  • === (strict equality) does not convert types.

Example:

console.log(5 == "5");  // true (type coercion)
console.log(5 === "5"); // false (strict comparison)