How does CoffeeScript’s existential operator work?

The documentation says this about ?: CoffeeScript’s existential operator ? returns true unless a variable is null or undefined, which makes it analogous to Ruby’s nil? so of course this will say “No taco!”: taco = undefined if taco? console.log “fiesta!” else console.log “No taco!” Your taco is explicitly undefined so taco? is false. CoffeeScript … Read more