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