{"action":"created","comment":{"url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/comments/56409729","id":56409729,"diff_hunk":"@@ -0,0 +1,106 @@\n+Exercises -Control Flow\n+// 1)\n+true || false // ->true\n+false && false // -> false\n+true && false // -> false\n+(false || true) && true //-> true\n+false && ((true || false) && (false || true)) // -> false\n+\n+// 2)\n+\n+1 // -> true\n+0 // -> false\n+3.14159 // -> true\n+\"abc\" // -> true\n+\"\" // -> false\n+Array // -> true\n+[] // -> true\n+Object // -> true\n+{} // -> true\n+\n+// 3)\n+true && 6 //-> true returns\n+0 || \"hi\" //-> true -> returns 'hi'\n+[\"a\",\"b\",\"c\"] || \"123\" // -> true returns [\"a\",\"b\",\"c\"]\n+{\"key\":\"value\"} || false// -> true {\"key\":\"value\"}\n+\n+// 4)\n+\"\"//->\n+0 //->\n+undefined// ->\n+null //->\n+NaN// ->\n+\n+// login -solution)\n+\n+function stringCheck(username, password){\n+if( typeof username == 'string' && typeof password =='string'){\n+    console.log('All Good');\n+}\n+else{\n+  console.log(\"Come on bro'man we need a username and password\");\n+}\n+}\n+stringCheck('relative-Rene','word');\n+\n+// Superman?\n+if(isSuperman){\n+  alert(\"It's superman!\")\n+}\n+\n+// make it a SloppyBurger - solution\n+var input = prompt('What would you like');\n+if(input == 'DoubleBurger'){\n+  alert('One SloppyDoubleBurger')\n+};\n+if(input == 'Fries'){\n+  alert('One SloppyFries');\n+}\n+if(input == 'SloppyJoe'){\n+  alert('One SloppySloppyJoe');\n+}else{\n+  alert('One SloppyBurger');\n+}\n+\n+// For Here - solution\n+var items = prompt(\"How many items\"), tax = 0.775;scanned = 0, total = 0,itemcost;\n+\n+while(items > scanned){\n+  if(forHere){\n+    scanned++;\n+    cost += (itemcost*tax);\n+  }\n+  else if(isHotBeverage || isHotBakedGood || isColdPrepared){\n+    scanned++;\n+    total += itemcost;\n+  }\n+}\n+\n+// Can I ride? - Solution\n+var BossNotLooking = true;","path":"controlFlow_W1","position":80,"original_position":80,"commit_id":"8c1efca1228946aff0311288009f2f0eeb8b384d","original_commit_id":"8c1efca1228946aff0311288009f2f0eeb8b384d","user":{"login":"nathanallen","id":1489337,"avatar_url":"https://avatars.githubusercontent.com/u/1489337?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanallen","html_url":"https://github.com/nathanallen","followers_url":"https://api.github.com/users/nathanallen/followers","following_url":"https://api.github.com/users/nathanallen/following{/other_user}","gists_url":"https://api.github.com/users/nathanallen/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanallen/subscriptions","organizations_url":"https://api.github.com/users/nathanallen/orgs","repos_url":"https://api.github.com/users/nathanallen/repos","events_url":"https://api.github.com/users/nathanallen/events{/privacy}","received_events_url":"https://api.github.com/users/nathanallen/received_events","type":"User","site_admin":false},"body":"prefer lowercase/camelcase variable names","created_at":"2016-03-16T20:35:12Z","updated_at":"2016-03-16T20:35:12Z","html_url":"https://github.com/SF-WDI-LABS/functions-exercises/pull/12#discussion_r56409729","pull_request_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/comments/56409729"},"html":{"href":"https://github.com/SF-WDI-LABS/functions-exercises/pull/12#discussion_r56409729"},"pull_request":{"href":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/12","id":63005936,"html_url":"https://github.com/SF-WDI-LABS/functions-exercises/pull/12","diff_url":"https://github.com/SF-WDI-LABS/functions-exercises/pull/12.diff","patch_url":"https://github.com/SF-WDI-LABS/functions-exercises/pull/12.patch","issue_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/issues/12","number":12,"state":"open","locked":false,"title":"w01 d02 completed all but bonus","user":{"login":"relative-rene","id":12709735,"avatar_url":"https://avatars.githubusercontent.com/u/12709735?v=3","gravatar_id":"","url":"https://api.github.com/users/relative-rene","html_url":"https://github.com/relative-rene","followers_url":"https://api.github.com/users/relative-rene/followers","following_url":"https://api.github.com/users/relative-rene/following{/other_user}","gists_url":"https://api.github.com/users/relative-rene/gists{/gist_id}","starred_url":"https://api.github.com/users/relative-rene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relative-rene/subscriptions","organizations_url":"https://api.github.com/users/relative-rene/orgs","repos_url":"https://api.github.com/users/relative-rene/repos","events_url":"https://api.github.com/users/relative-rene/events{/privacy}","received_events_url":"https://api.github.com/users/relative-rene/received_events","type":"User","site_admin":false},"body":"comfort: 5/5\r\ncompleteness: 4/5\r\n\r\nI feel great about the assignment. I am still a little confused about the submission process but I did better than yesterday.","created_at":"2016-03-16T02:29:02Z","updated_at":"2016-03-16T20:35:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c6b61a165f09dcc6e626642d0a92853096bca39","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/12/commits","review_comments_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/12/comments","review_comment_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/issues/12/comments","statuses_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/statuses/8c1efca1228946aff0311288009f2f0eeb8b384d","head":{"label":"relative-rene:master","ref":"master","sha":"8c1efca1228946aff0311288009f2f0eeb8b384d","user":{"login":"relative-rene","id":12709735,"avatar_url":"https://avatars.githubusercontent.com/u/12709735?v=3","gravatar_id":"","url":"https://api.github.com/users/relative-rene","html_url":"https://github.com/relative-rene","followers_url":"https://api.github.com/users/relative-rene/followers","following_url":"https://api.github.com/users/relative-rene/following{/other_user}","gists_url":"https://api.github.com/users/relative-rene/gists{/gist_id}","starred_url":"https://api.github.com/users/relative-rene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relative-rene/subscriptions","organizations_url":"https://api.github.com/users/relative-rene/orgs","repos_url":"https://api.github.com/users/relative-rene/repos","events_url":"https://api.github.com/users/relative-rene/events{/privacy}","received_events_url":"https://api.github.com/users/relative-rene/received_events","type":"User","site_admin":false},"repo":{"id":53993717,"name":"functions-exercises","full_name":"relative-rene/functions-exercises","owner":{"login":"relative-rene","id":12709735,"avatar_url":"https://avatars.githubusercontent.com/u/12709735?v=3","gravatar_id":"","url":"https://api.github.com/users/relative-rene","html_url":"https://github.com/relative-rene","followers_url":"https://api.github.com/users/relative-rene/followers","following_url":"https://api.github.com/users/relative-rene/following{/other_user}","gists_url":"https://api.github.com/users/relative-rene/gists{/gist_id}","starred_url":"https://api.github.com/users/relative-rene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relative-rene/subscriptions","organizations_url":"https://api.github.com/users/relative-rene/orgs","repos_url":"https://api.github.com/users/relative-rene/repos","events_url":"https://api.github.com/users/relative-rene/events{/privacy}","received_events_url":"https://api.github.com/users/relative-rene/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/relative-rene/functions-exercises","description":"fill in the internals of JS functions (with Math object)","fork":true,"url":"https://api.github.com/repos/relative-rene/functions-exercises","forks_url":"https://api.github.com/repos/relative-rene/functions-exercises/forks","keys_url":"https://api.github.com/repos/relative-rene/functions-exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/relative-rene/functions-exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/relative-rene/functions-exercises/teams","hooks_url":"https://api.github.com/repos/relative-rene/functions-exercises/hooks","issue_events_url":"https://api.github.com/repos/relative-rene/functions-exercises/issues/events{/number}","events_url":"https://api.github.com/repos/relative-rene/functions-exercises/events","assignees_url":"https://api.github.com/repos/relative-rene/functions-exercises/assignees{/user}","branches_url":"https://api.github.com/repos/relative-rene/functions-exercises/branches{/branch}","tags_url":"https://api.github.com/repos/relative-rene/functions-exercises/tags","blobs_url":"https://api.github.com/repos/relative-rene/functions-exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/relative-rene/functions-exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/relative-rene/functions-exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/relative-rene/functions-exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/relative-rene/functions-exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/relative-rene/functions-exercises/languages","stargazers_url":"https://api.github.com/repos/relative-rene/functions-exercises/stargazers","contributors_url":"https://api.github.com/repos/relative-rene/functions-exercises/contributors","subscribers_url":"https://api.github.com/repos/relative-rene/functions-exercises/subscribers","subscription_url":"https://api.github.com/repos/relative-rene/functions-exercises/subscription","commits_url":"https://api.github.com/repos/relative-rene/functions-exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/relative-rene/functions-exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/relative-rene/functions-exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/relative-rene/functions-exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/relative-rene/functions-exercises/contents/{+path}","compare_url":"https://api.github.com/repos/relative-rene/functions-exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/relative-rene/functions-exercises/merges","archive_url":"https://api.github.com/repos/relative-rene/functions-exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/relative-rene/functions-exercises/downloads","issues_url":"https://api.github.com/repos/relative-rene/functions-exercises/issues{/number}","pulls_url":"https://api.github.com/repos/relative-rene/functions-exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/relative-rene/functions-exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/relative-rene/functions-exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/relative-rene/functions-exercises/labels{/name}","releases_url":"https://api.github.com/repos/relative-rene/functions-exercises/releases{/id}","deployments_url":"https://api.github.com/repos/relative-rene/functions-exercises/deployments","created_at":"2016-03-16T02:15:17Z","updated_at":"2016-03-16T02:15:18Z","pushed_at":"2016-03-16T03:07:22Z","git_url":"git://github.com/relative-rene/functions-exercises.git","ssh_url":"git@github.com:relative-rene/functions-exercises.git","clone_url":"https://github.com/relative-rene/functions-exercises.git","svn_url":"https://github.com/relative-rene/functions-exercises","homepage":null,"size":6,"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":"SF-WDI-LABS:master","ref":"master","sha":"3898cee9e8de355e91e8e379db915ad60877d4e0","user":{"login":"SF-WDI-LABS","id":13909924,"avatar_url":"https://avatars.githubusercontent.com/u/13909924?v=3","gravatar_id":"","url":"https://api.github.com/users/SF-WDI-LABS","html_url":"https://github.com/SF-WDI-LABS","followers_url":"https://api.github.com/users/SF-WDI-LABS/followers","following_url":"https://api.github.com/users/SF-WDI-LABS/following{/other_user}","gists_url":"https://api.github.com/users/SF-WDI-LABS/gists{/gist_id}","starred_url":"https://api.github.com/users/SF-WDI-LABS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SF-WDI-LABS/subscriptions","organizations_url":"https://api.github.com/users/SF-WDI-LABS/orgs","repos_url":"https://api.github.com/users/SF-WDI-LABS/repos","events_url":"https://api.github.com/users/SF-WDI-LABS/events{/privacy}","received_events_url":"https://api.github.com/users/SF-WDI-LABS/received_events","type":"Organization","site_admin":false},"repo":{"id":53966352,"name":"functions-exercises","full_name":"SF-WDI-LABS/functions-exercises","owner":{"login":"SF-WDI-LABS","id":13909924,"avatar_url":"https://avatars.githubusercontent.com/u/13909924?v=3","gravatar_id":"","url":"https://api.github.com/users/SF-WDI-LABS","html_url":"https://github.com/SF-WDI-LABS","followers_url":"https://api.github.com/users/SF-WDI-LABS/followers","following_url":"https://api.github.com/users/SF-WDI-LABS/following{/other_user}","gists_url":"https://api.github.com/users/SF-WDI-LABS/gists{/gist_id}","starred_url":"https://api.github.com/users/SF-WDI-LABS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SF-WDI-LABS/subscriptions","organizations_url":"https://api.github.com/users/SF-WDI-LABS/orgs","repos_url":"https://api.github.com/users/SF-WDI-LABS/repos","events_url":"https://api.github.com/users/SF-WDI-LABS/events{/privacy}","received_events_url":"https://api.github.com/users/SF-WDI-LABS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SF-WDI-LABS/functions-exercises","description":"fill in the internals of JS functions (with Math object)","fork":false,"url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises","forks_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/forks","keys_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/teams","hooks_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/hooks","issue_events_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/issues/events{/number}","events_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/events","assignees_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/assignees{/user}","branches_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/branches{/branch}","tags_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/tags","blobs_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/languages","stargazers_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/stargazers","contributors_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/contributors","subscribers_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/subscribers","subscription_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/subscription","commits_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/contents/{+path}","compare_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/merges","archive_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/downloads","issues_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/issues{/number}","pulls_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/labels{/name}","releases_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/releases{/id}","deployments_url":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/deployments","created_at":"2016-03-15T17:52:03Z","updated_at":"2016-03-15T17:52:18Z","pushed_at":"2016-03-16T15:46:51Z","git_url":"git://github.com/SF-WDI-LABS/functions-exercises.git","ssh_url":"git@github.com:SF-WDI-LABS/functions-exercises.git","clone_url":"https://github.com/SF-WDI-LABS/functions-exercises.git","svn_url":"https://github.com/SF-WDI-LABS/functions-exercises","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":29,"forks":41,"open_issues":29,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/12"},"html":{"href":"https://github.com/SF-WDI-LABS/functions-exercises/pull/12"},"issue":{"href":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/issues/12"},"comments":{"href":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/SF-WDI-LABS/functions-exercises/statuses/8c1efca1228946aff0311288009f2f0eeb8b384d"}}}}