Advertisement
AlexandrP

Untitled

Nov 17th, 2022 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function work (input) {
  2.  
  3.     a = Number(input[0]);
  4.     b = input[1];
  5.  
  6. if ((a >= 10 && a < 18) && ((b == "Monday") || (b == "Tuesday") || (b == "Wendesday") || (b == "Thursday") || (b == "Friday") || (b == "Satuday") ) )
  7. {console.log("open");
  8.  
  9. }else{console.log("closed")}
  10.  
  11. }
  12.  
  13. work (["18",
  14. "Friday"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement