didkoslawow

Untitled

Sep 16th, 2022
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. function weatherForecast (input) {
  2.  
  3. let weather = input[0];
  4.  
  5. if(weather == input[0]) {
  6. console.log("It's warm outside!")
  7. } else {
  8. console.log("It's cold outside!")
  9. }
  10.  
  11.  
  12.  
  13.  
  14. }
  15.  
  16. weatherForecast(["sunny"])
Advertisement
Add Comment
Please, Sign In to add comment