Skip to content

Instantly share code, notes, and snippets.

@DerZyklop
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerZyklop/50f9f78fa314b42aaeb0 to your computer and use it in GitHub Desktop.
Save DerZyklop/50f9f78fa314b42aaeb0 to your computer and use it in GitHub Desktop.

Das Verhalten von if statements ist in CoffeeScript das selbe wie in Javascript. Ich habe dafür einen kleinen Test geschrieben.

Sollte man allerdings

if true == 1

schreiben, dann macht CoffeeScript daraus ein

if true === 1

Die Gleichung true === 1 ergibt false.

CoffeeScript macht aus == grundsätzlich immer === und das aus gutem Grund.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment