This translation is incomplete. Please help translate this article from English

Un valor falsy es un valor que se traduce como falso cuando es evaluado en un contexto Boolean .

JavaScript usa el tipo coercion en contextos Booleanos.


Ejemplos de valores falsy en JavaScript (los cuales son traducidos a false y asi  bypass el bloque if):

if (false)
if (null)
if (undefined)
if (0)
if (NaN)
if ('')
if ("")
if (document.all) [1]

[1] document.all has been used for browser detection in the past and the HTML specification defines a willful violation of the ECMAScript standard here to keep compatibility with legacy code (if (document.all) { // Internet Explorer code here } or using document.all without checking its presence first: document.all.foo).

Sometimes written falsey, although in English usually turning a word into an adjective with a -y, any final e is dropped (noise => noisy, ice => icy, shine => shiny)

Learn more