below function please?
                  
                  
                  setMode("bake");
                  
                  
                  setTemp(degrees);
                  
                  
                  
                  
                  
                  function bake(degrees) {    
                  
                  
                  var message;
                  
                  
                  if (degrees > 500) {         
                  
                  
                  message = "I'm not a nuclear reactor!"; 
                  
                  
                      } else if (degrees < 100) {         
                  
                  
                  message = "I'm not a refrigerator!"; 
                  
                  
                      } else {        
                  
                  
                   message = "That's a very comfortable temperature for me.";        
                  
                  
                   setMode("bake");         setTemp(degrees);
                  
                  
                  }
                  
                  
                  return  message; } 
                  
                  
                  var status = bake(350);
                  
                  
                
You didn't provide the function definitions for the two methods in question, but from what's available right know I assume they are setting the mode and the temperature -as the names say- so that the updated values can be available for anything that access them. I may be wrong though but it's the best guess I can give you now
Обсуждают сегодня