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,556
  • 5
  • 14

0 Answers0