Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function workingHours(hour, dayOfWeek) {
- if (dayOfWeek === 'Sunday' || hour < 10 || hour > 18) {
- console.log('closed');
- } else {
- console.log('open');
- }
- }
- workingHours(11, 'Monday');
- workingHours(19, 'Friday');
- workingHours(11, 'Sunday');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement