Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function weatherForecast (input) {
- let warmWeather = "sunny";
- let coldWeather = "cloudy" && "snowy";
- if(warmWeather == input[0]) {
- console.log("It's warm outside!")
- } else {
- console.log("It's cold outside!")
- }
- }
- weatherForecast(["cloudy"])
Advertisement
Add Comment
Please, Sign In to add comment