{"action":"opened","issue":{"url":"https://api.github.com/repos/learn-co-curriculum/skills-based-javascript-intro-to-flow-control/issues/64","repository_url":"https://api.github.com/repos/learn-co-curriculum/skills-based-javascript-intro-to-flow-control","labels_url":"https://api.github.com/repos/learn-co-curriculum/skills-based-javascript-intro-to-flow-control/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/learn-co-curriculum/skills-based-javascript-intro-to-flow-control/issues/64/comments","events_url":"https://api.github.com/repos/learn-co-curriculum/skills-based-javascript-intro-to-flow-control/issues/64/events","html_url":"https://github.com/learn-co-curriculum/skills-based-javascript-intro-to-flow-control/issues/64","id":210350787,"number":64,"title":"Having trouble with JS Flow Control Lab.  See Code below","user":{"login":"klj310","id":26044126,"avatar_url":"https://avatars.githubusercontent.com/u/26044126?v=3","gravatar_id":"","url":"https://api.github.com/users/klj310","html_url":"https://github.com/klj310","followers_url":"https://api.github.com/users/klj310/followers","following_url":"https://api.github.com/users/klj310/following{/other_user}","gists_url":"https://api.github.com/users/klj310/gists{/gist_id}","starred_url":"https://api.github.com/users/klj310/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klj310/subscriptions","organizations_url":"https://api.github.com/users/klj310/orgs","repos_url":"https://api.github.com/users/klj310/repos","events_url":"https://api.github.com/users/klj310/events{/privacy}","received_events_url":"https://api.github.com/users/klj310/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-26T21:36:59Z","updated_at":"2017-02-26T21:36:59Z","closed_at":null,"body":"function basicTeenager(age) {\r\n  if (age >= 13 && age <= 19){\r\n  return You are a teenager!\r\n}\r\n}\r\n\r\n}\r\n\r\nfunction teenager(age) {\r\n  if (age >= 13 && age <= 19){\r\n  return You are a teenager!\r\n} else {\r\n  return You are not a teenager\r\n}\r\n\r\n}\r\n\r\nfunction ageChecker(age) {\r\n  if (age >= 13 && age <= 19){\r\n  return You are a teenager!\r\n} else if (age <=12) {\r\n  return You are a kid\r\n} else {\r\n  return You are a grownup\r\n}\r\n\r\n}\r\n\r\nfunction ternaryTeenager(age) {return conditionToTest (age >= 13 && age <= 19) You are a teenager : You are not a teenager\r\n\r\n}\r\n\r\nfunction switchAge(age) {\r\n  switch(age) {\r\n    case \"13\":\r\n      console.log(\"You are a teenager\");\r\n      break;\r\n      case \"14\":\r\n        console.log(\"You are a teenager\");\r\n        break;\r\n      case \"15\":\r\n          console.log(\"You are a teenager\");\r\n          break;\r\n      case \"16\":\r\n          console.log(\"You are a teenager\");\r\n          break;\r\n      case \"17\":\r\n          console.log(\"You are a teenager\");\r\n          break;\r\n      case \"18\":\r\n          console.log(\"You are a teenager\");\r\n          break;\r\n      case \"19\":\r\n          console.log(\"You are a teenager\");\r\n          break;\r\n      default:\r\n        console.log(\"You have an age\")\r\n\r\n\r\n**The errors for everything say \"ReferenceError: basicTeenager is not defined\" \"ReferenceError: teenager is not defined\", etc.  What am I missing?**"}}
{"actor":{"display_login":"klj310"}}