Remix.run Logo
kmoser 2 days ago

> if (success = true) // Oops!

Hence the better way of comparing literals or consts to vars:

  if ( true = success ) // Compile-time error will enlighten you
brontitall 2 days ago | parent [-]

https://en.wikipedia.org/wiki/Yoda_conditions