Notes for lesson 3 of CodeSchool's CoffeScript class

The following is my notes for the challenges on level 3 of of CodeSchool's CoffeeScript course (https://www.codeschool.com/courses/coffeescript).
********* challenge 3.1

alert('High Caffeine Level') if caffeineLevel > 5
********* challenge 3.2

# caffeineLevel > 5 ? alert('Too High') : alert('OK');

if caffeineLevel > 5 
  alert('Too High')
else
  alert('OK')
********* challenge 3.3

# if(!coffeeReady){
#   alert('Please wait 5 more minutes.')
# }

alert('Please wait 5 more minutes.') unless coffeeReady
********* challenge 3.4

# if lowLevel < newLevel && newLevel < highLevel
#   alert 'ok'
# else
#   alert 'abnormal caffeine level'

if lowLevel < newLevel < highLevel
  alert 'ok'
else
  alert 'abnormal caffeine level'
********* challenge 3.5

# if (newLevel === 1) {
#   message = 'Out of bed yet?';
# } else if (newLevel === 2) {
#   message = 'Good morning!';
# } else {
#   message = 'You should stop while you can';
# }

message = switch newLevel
  when 1 then 'Out of bed yet?';
  when 2 then 'Good morning!';
  else 'You should stop while you can'
********* challenge 3.6

# if (typeof newLevel !== "undefined" && newLevel !== null){
#   checkLevel(newLevel);
# } else {
#   resetLevel();
# }

if newLevel?
  checkLevel newLevel
else
  resetLevel()
********* challenge 3.7

# if level?
#   checkLevel(level)
# else
#   resetLevel()

if level?
  checkLevel?(level)
else
  resetLevel?()