When does "true" equal "false" in JavaScript?

Publicado el: 27 julio 2021
en el canal de: Andrew Hoffman
1,117
4

👍👍👍 and subscribe for more:    / @and1hof  
Check out my best selling AppSec book: https://amzn.to/3pGO4Vz
Check out my behind-the-scenes newsletter: https://www.andrewhoffman.me/newsletter/

The ! operator in JavaScript converts an object to a boolean and than flips it from true to false or from false to true. Operations involving this operator can get confusing, in this case the strings equate because they are comparing length rather than value after being coerced into booleans and flipped.


En esta página del sitio puede ver el video en línea When does "true" equal "false" in JavaScript? de Duración online en buena calidad , que subió el usuario Andrew Hoffman 27 julio 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,117 veces y le gustó 4 a los espectadores. Disfruta viendo!