loading...

theWorksInAction

suleetate profile image suLeeTate ・1 min read

Lesson 11 Discussion

  1. Why do you think conditionals are important?
    a. Conditionals give the operation something to do after interaction
    with the user.
    b. Conditionals allow the internal workings of a function to be
    hidden.

  2. Give a set of instructions on how you thing a thermostat program should work and “bold/underline” the conditionals.

var bestRoomTemp = 70
if bestRoomTemp < 70 {"its a lil chilli in here"}
else if bestRoomTemp > 70{"its hot as Hell in here"}
else {"its just right in here"}

Discussion

markdown guide