Double or Triple Equals

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • easy
  • Pro

A form check compares the user's input to zero with double equals, and it passes when the input is an empty string. Explain why, how double equals and triple equals differ, and how you'd compare values safely, including objects and the value NaN.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →