Quick actions

cmd+k|ctrl+k

Navigation

Languages

Which Way

Snippet info

Language

JavaScript

Visibility

public

Author

damoe4

Created

2017-06-13T16:42:03Z

Updated

2017-06-13T16:42:03Z

  var timeOfDay = 500;

    function whichWay(timeOfDay){
    // YOUR CODE HERE
    if (timeOfDay > 600 && timeOfDay < 900 || timeOfDay > 1600 && timeOfDay < 1800) {
      return "Rush hour bro... Go around the city."
      
    } else {
      return "You good. Go straight through."
    }
  }
  console.log(whichWay(timeOfDay))
INFO