{"action":"created","comment":{"url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/comments/47273374","id":47273374,"diff_hunk":"@@ -202,49 +197,104 @@ Using an if/else expression, create a script that prompts the user for their age\n   * If the user is between 18 and 21, he/she should receive a message that he/she can enter, but not drink.\n   * If the user is older than 21, he/she should receive a message that he/she can both enter and drink.\n \n+var age = prompt(\"Age? \");\n \n-\n-\n-\n-\n-\n-\n-\n-\n+if (age < 18) {\n+    console.log(\"You cannot enter, Too Young.\");\n+}\n+else if (age >= 18 && age < 21) {\n+    console.log(\"You may enter, but cannot drink.\");\n+}\n+else {\n+    console.log(\"You can enter and drink\");\n+}\n \n \n 2.) Grade.js\n-Output the following letter grade from a variable with with a test score. \n+Output the following letter grade from a variable with with a test score.\n \n Based on the user input, display either \"A\", \"B\", \"C\", \"D\", or \"F\", for an score that is an integer between 0 and 100. Try and use a `switch` statement.\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+var letter, grade = 59;\n+\n+switch (true) {\n+    case grade >= 90:\n+        letter = \"A\";\n+        break;\n+    case grade >= 80:\n+        letter = \"B\";\n+        break;\n+    case grade >= 70:\n+        letter = \"C\";\n+        break;\n+    case grade >= 60:\n+        letter = \"D\";\n+        break;\n+    default:\n+        letter = \"F\";\n+}\n+console.log(letter);\n \n 3.) Fizz Buzz\n-Write a small program that asks a user for a number. If it's a multiple of 3, output \"fizz\". If it's a multiple of 5, output \"buzz\". If it's a multiple of 3 and 5, output \"Fizzbuzz\". \n-\n-\n-\n-\n-\n-\n-\n-\n-\n+Write a small program that asks a user for a number. If it's a multiple of 3, output \"fizz\". If it's a multiple of 5, output \"buzz\". If it's a multiple of 3 and 5, output \"Fizzbuzz\".\n \n+    var result = '';\n+    if (num % 3 === 0) {\n+        result = 'fizz';\n+    }\n+    if (num % 5 === 0) {\n+        result += 'buzz';\n+    }\n+    console.log(result);\n \n \n 4.) BONUS!! (Not required, but give it the college try!)","path":"js_intro_and_control_flow.js","position":242,"original_position":242,"commit_id":"1491b4c418f72a87adcf0e88d8c777bd4bca1303","original_commit_id":"1491b4c418f72a87adcf0e88d8c777bd4bca1303","user":{"login":"marcwright","id":5376993,"avatar_url":"https://avatars.githubusercontent.com/u/5376993?v=3","gravatar_id":"","url":"https://api.github.com/users/marcwright","html_url":"https://github.com/marcwright","followers_url":"https://api.github.com/users/marcwright/followers","following_url":"https://api.github.com/users/marcwright/following{/other_user}","gists_url":"https://api.github.com/users/marcwright/gists{/gist_id}","starred_url":"https://api.github.com/users/marcwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcwright/subscriptions","organizations_url":"https://api.github.com/users/marcwright/orgs","repos_url":"https://api.github.com/users/marcwright/repos","events_url":"https://api.github.com/users/marcwright/events{/privacy}","received_events_url":"https://api.github.com/users/marcwright/received_events","type":"User","site_admin":false},"body":"Nice work on this one!","created_at":"2015-12-10T19:35:22Z","updated_at":"2015-12-10T19:35:22Z","html_url":"https://github.com/ATL-WDI-Exercises/js-control-flows/pull/4#discussion_r47273374","pull_request_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/comments/47273374"},"html":{"href":"https://github.com/ATL-WDI-Exercises/js-control-flows/pull/4#discussion_r47273374"},"pull_request":{"href":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/4","id":52769275,"html_url":"https://github.com/ATL-WDI-Exercises/js-control-flows/pull/4","diff_url":"https://github.com/ATL-WDI-Exercises/js-control-flows/pull/4.diff","patch_url":"https://github.com/ATL-WDI-Exercises/js-control-flows/pull/4.patch","issue_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/issues/4","number":4,"state":"open","locked":false,"title":"Completed","user":{"login":"nicktouchette","id":8799909,"avatar_url":"https://avatars.githubusercontent.com/u/8799909?v=3","gravatar_id":"","url":"https://api.github.com/users/nicktouchette","html_url":"https://github.com/nicktouchette","followers_url":"https://api.github.com/users/nicktouchette/followers","following_url":"https://api.github.com/users/nicktouchette/following{/other_user}","gists_url":"https://api.github.com/users/nicktouchette/gists{/gist_id}","starred_url":"https://api.github.com/users/nicktouchette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicktouchette/subscriptions","organizations_url":"https://api.github.com/users/nicktouchette/orgs","repos_url":"https://api.github.com/users/nicktouchette/repos","events_url":"https://api.github.com/users/nicktouchette/events{/privacy}","received_events_url":"https://api.github.com/users/nicktouchette/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-06T00:48:43Z","updated_at":"2015-12-10T19:35:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f49be83d2fc2ad745cb5eeac39211e627a0d21ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/issues/4/comments","statuses_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/statuses/1491b4c418f72a87adcf0e88d8c777bd4bca1303","head":{"label":"nicktouchette:master","ref":"master","sha":"1491b4c418f72a87adcf0e88d8c777bd4bca1303","user":{"login":"nicktouchette","id":8799909,"avatar_url":"https://avatars.githubusercontent.com/u/8799909?v=3","gravatar_id":"","url":"https://api.github.com/users/nicktouchette","html_url":"https://github.com/nicktouchette","followers_url":"https://api.github.com/users/nicktouchette/followers","following_url":"https://api.github.com/users/nicktouchette/following{/other_user}","gists_url":"https://api.github.com/users/nicktouchette/gists{/gist_id}","starred_url":"https://api.github.com/users/nicktouchette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicktouchette/subscriptions","organizations_url":"https://api.github.com/users/nicktouchette/orgs","repos_url":"https://api.github.com/users/nicktouchette/repos","events_url":"https://api.github.com/users/nicktouchette/events{/privacy}","received_events_url":"https://api.github.com/users/nicktouchette/received_events","type":"User","site_admin":false},"repo":{"id":47363618,"name":"js-control-flows","full_name":"nicktouchette/js-control-flows","owner":{"login":"nicktouchette","id":8799909,"avatar_url":"https://avatars.githubusercontent.com/u/8799909?v=3","gravatar_id":"","url":"https://api.github.com/users/nicktouchette","html_url":"https://github.com/nicktouchette","followers_url":"https://api.github.com/users/nicktouchette/followers","following_url":"https://api.github.com/users/nicktouchette/following{/other_user}","gists_url":"https://api.github.com/users/nicktouchette/gists{/gist_id}","starred_url":"https://api.github.com/users/nicktouchette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicktouchette/subscriptions","organizations_url":"https://api.github.com/users/nicktouchette/orgs","repos_url":"https://api.github.com/users/nicktouchette/repos","events_url":"https://api.github.com/users/nicktouchette/events{/privacy}","received_events_url":"https://api.github.com/users/nicktouchette/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicktouchette/js-control-flows","description":"","fork":true,"url":"https://api.github.com/repos/nicktouchette/js-control-flows","forks_url":"https://api.github.com/repos/nicktouchette/js-control-flows/forks","keys_url":"https://api.github.com/repos/nicktouchette/js-control-flows/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicktouchette/js-control-flows/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicktouchette/js-control-flows/teams","hooks_url":"https://api.github.com/repos/nicktouchette/js-control-flows/hooks","issue_events_url":"https://api.github.com/repos/nicktouchette/js-control-flows/issues/events{/number}","events_url":"https://api.github.com/repos/nicktouchette/js-control-flows/events","assignees_url":"https://api.github.com/repos/nicktouchette/js-control-flows/assignees{/user}","branches_url":"https://api.github.com/repos/nicktouchette/js-control-flows/branches{/branch}","tags_url":"https://api.github.com/repos/nicktouchette/js-control-flows/tags","blobs_url":"https://api.github.com/repos/nicktouchette/js-control-flows/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicktouchette/js-control-flows/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicktouchette/js-control-flows/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicktouchette/js-control-flows/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicktouchette/js-control-flows/statuses/{sha}","languages_url":"https://api.github.com/repos/nicktouchette/js-control-flows/languages","stargazers_url":"https://api.github.com/repos/nicktouchette/js-control-flows/stargazers","contributors_url":"https://api.github.com/repos/nicktouchette/js-control-flows/contributors","subscribers_url":"https://api.github.com/repos/nicktouchette/js-control-flows/subscribers","subscription_url":"https://api.github.com/repos/nicktouchette/js-control-flows/subscription","commits_url":"https://api.github.com/repos/nicktouchette/js-control-flows/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicktouchette/js-control-flows/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicktouchette/js-control-flows/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicktouchette/js-control-flows/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicktouchette/js-control-flows/contents/{+path}","compare_url":"https://api.github.com/repos/nicktouchette/js-control-flows/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicktouchette/js-control-flows/merges","archive_url":"https://api.github.com/repos/nicktouchette/js-control-flows/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicktouchette/js-control-flows/downloads","issues_url":"https://api.github.com/repos/nicktouchette/js-control-flows/issues{/number}","pulls_url":"https://api.github.com/repos/nicktouchette/js-control-flows/pulls{/number}","milestones_url":"https://api.github.com/repos/nicktouchette/js-control-flows/milestones{/number}","notifications_url":"https://api.github.com/repos/nicktouchette/js-control-flows/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicktouchette/js-control-flows/labels{/name}","releases_url":"https://api.github.com/repos/nicktouchette/js-control-flows/releases{/id}","created_at":"2015-12-03T22:02:18Z","updated_at":"2015-12-03T22:02:19Z","pushed_at":"2015-12-06T00:48:15Z","git_url":"git://github.com/nicktouchette/js-control-flows.git","ssh_url":"git@github.com:nicktouchette/js-control-flows.git","clone_url":"https://github.com/nicktouchette/js-control-flows.git","svn_url":"https://github.com/nicktouchette/js-control-flows","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ATL-WDI-Exercises:master","ref":"master","sha":"f0a74038a040075d7958a282a44687ea0723bff1","user":{"login":"ATL-WDI-Exercises","id":15914885,"avatar_url":"https://avatars.githubusercontent.com/u/15914885?v=3","gravatar_id":"","url":"https://api.github.com/users/ATL-WDI-Exercises","html_url":"https://github.com/ATL-WDI-Exercises","followers_url":"https://api.github.com/users/ATL-WDI-Exercises/followers","following_url":"https://api.github.com/users/ATL-WDI-Exercises/following{/other_user}","gists_url":"https://api.github.com/users/ATL-WDI-Exercises/gists{/gist_id}","starred_url":"https://api.github.com/users/ATL-WDI-Exercises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATL-WDI-Exercises/subscriptions","organizations_url":"https://api.github.com/users/ATL-WDI-Exercises/orgs","repos_url":"https://api.github.com/users/ATL-WDI-Exercises/repos","events_url":"https://api.github.com/users/ATL-WDI-Exercises/events{/privacy}","received_events_url":"https://api.github.com/users/ATL-WDI-Exercises/received_events","type":"Organization","site_admin":false},"repo":{"id":46509838,"name":"js-control-flows","full_name":"ATL-WDI-Exercises/js-control-flows","owner":{"login":"ATL-WDI-Exercises","id":15914885,"avatar_url":"https://avatars.githubusercontent.com/u/15914885?v=3","gravatar_id":"","url":"https://api.github.com/users/ATL-WDI-Exercises","html_url":"https://github.com/ATL-WDI-Exercises","followers_url":"https://api.github.com/users/ATL-WDI-Exercises/followers","following_url":"https://api.github.com/users/ATL-WDI-Exercises/following{/other_user}","gists_url":"https://api.github.com/users/ATL-WDI-Exercises/gists{/gist_id}","starred_url":"https://api.github.com/users/ATL-WDI-Exercises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATL-WDI-Exercises/subscriptions","organizations_url":"https://api.github.com/users/ATL-WDI-Exercises/orgs","repos_url":"https://api.github.com/users/ATL-WDI-Exercises/repos","events_url":"https://api.github.com/users/ATL-WDI-Exercises/events{/privacy}","received_events_url":"https://api.github.com/users/ATL-WDI-Exercises/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ATL-WDI-Exercises/js-control-flows","description":"[js, programming]","fork":false,"url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows","forks_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/forks","keys_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/teams","hooks_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/hooks","issue_events_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/issues/events{/number}","events_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/events","assignees_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/assignees{/user}","branches_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/branches{/branch}","tags_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/tags","blobs_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/git/refs{/sha}","trees_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/statuses/{sha}","languages_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/languages","stargazers_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/stargazers","contributors_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/contributors","subscribers_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/subscribers","subscription_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/subscription","commits_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/commits{/sha}","git_commits_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/git/commits{/sha}","comments_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/comments{/number}","issue_comment_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/issues/comments{/number}","contents_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/contents/{+path}","compare_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/merges","archive_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/downloads","issues_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/issues{/number}","pulls_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls{/number}","milestones_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/milestones{/number}","notifications_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/labels{/name}","releases_url":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/releases{/id}","created_at":"2015-11-19T17:47:55Z","updated_at":"2015-12-07T13:42:13Z","pushed_at":"2015-12-09T00:01:26Z","git_url":"git://github.com/ATL-WDI-Exercises/js-control-flows.git","ssh_url":"git@github.com:ATL-WDI-Exercises/js-control-flows.git","clone_url":"https://github.com/ATL-WDI-Exercises/js-control-flows.git","svn_url":"https://github.com/ATL-WDI-Exercises/js-control-flows","homepage":"","size":8,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":11,"forks":16,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/4"},"html":{"href":"https://github.com/ATL-WDI-Exercises/js-control-flows/pull/4"},"issue":{"href":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/issues/4"},"comments":{"href":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ATL-WDI-Exercises/js-control-flows/statuses/1491b4c418f72a87adcf0e88d8c777bd4bca1303"}}}}