CoffeeScript: Difference between revisions

Content deleted Content added
Change `is` to `was` (see talk page)
m Syntax: Correction; includes 18.5.
Line 38:
const height = 1.78
const BMI = mass / height ** 2
if (18.5 <= BMI && BMI < 25) { alert('You are healthy!') }
</syntaxhighlight>
 
Line 47:
height = 1.78
BMI = mass / height**2
alert 'You are healthy!' if 18.5 <= BMI < 25
</syntaxhighlight>