0

({}) === true and ({}) == true both return false however:

while({}){console.log("I'm running...")}

will cause cnosole.log to execute indefinitely.

How is the while loop taken if the expression equals false and where does this statement gets used?

Dan
  • 2,694
  • 1
  • 6
  • 19

0 Answers0