Liliana797979

weather2

Nov 29th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function weather(arg1) {
  2.     let weather = arg1;
  3.     if (weather == "sunny") {
  4.         console.log(`It's warm outside!`);
  5.    } else if (weather == "cloudy") {
  6.        console.log(`It's cold outside!`);
  7.     } else {
  8.         (weather == "snowy")
  9.         console.log(`It's cold outside!`);
  10.    }
  11. }
  12.  
  13. weather("snowy");
Add Comment
Please, Sign In to add comment