{"action":"created","issue":{"url":"https://api.github.com/repos/htmlacademy-javascript/93651-code-and-magick/issues/1","repository_url":"https://api.github.com/repos/htmlacademy-javascript/93651-code-and-magick","labels_url":"https://api.github.com/repos/htmlacademy-javascript/93651-code-and-magick/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/93651-code-and-magick/issues/1/comments","events_url":"https://api.github.com/repos/htmlacademy-javascript/93651-code-and-magick/issues/1/events","html_url":"https://github.com/htmlacademy-javascript/93651-code-and-magick/pull/1","id":202014428,"number":1,"title":"Учебный проект: начинаем программировать","user":{"login":"dmitriykirilyuk","id":14363503,"avatar_url":"https://avatars.githubusercontent.com/u/14363503?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitriykirilyuk","html_url":"https://github.com/dmitriykirilyuk","followers_url":"https://api.github.com/users/dmitriykirilyuk/followers","following_url":"https://api.github.com/users/dmitriykirilyuk/following{/other_user}","gists_url":"https://api.github.com/users/dmitriykirilyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitriykirilyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitriykirilyuk/subscriptions","organizations_url":"https://api.github.com/users/dmitriykirilyuk/orgs","repos_url":"https://api.github.com/users/dmitriykirilyuk/repos","events_url":"https://api.github.com/users/dmitriykirilyuk/events{/privacy}","received_events_url":"https://api.github.com/users/dmitriykirilyuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-20T00:21:16Z","updated_at":"2017-01-20T00:27:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/93651-code-and-magick/pulls/1","html_url":"https://github.com/htmlacademy-javascript/93651-code-and-magick/pull/1","diff_url":"https://github.com/htmlacademy-javascript/93651-code-and-magick/pull/1.diff","patch_url":"https://github.com/htmlacademy-javascript/93651-code-and-magick/pull/1.patch"},"body":"\n\n---\n:mortar_board: [Учебный проект: начинаем программировать](https://up.htmlacademy.ru/javascript/8/user/93651/tasks/6)"},"comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/93651-code-and-magick/issues/comments/273941856","html_url":"https://github.com/htmlacademy-javascript/93651-code-and-magick/pull/1#issuecomment-273941856","issue_url":"https://api.github.com/repos/htmlacademy-javascript/93651-code-and-magick/issues/1","id":273941856,"user":{"login":"dmitriykirilyuk","id":14363503,"avatar_url":"https://avatars.githubusercontent.com/u/14363503?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitriykirilyuk","html_url":"https://github.com/dmitriykirilyuk","followers_url":"https://api.github.com/users/dmitriykirilyuk/followers","following_url":"https://api.github.com/users/dmitriykirilyuk/following{/other_user}","gists_url":"https://api.github.com/users/dmitriykirilyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitriykirilyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitriykirilyuk/subscriptions","organizations_url":"https://api.github.com/users/dmitriykirilyuk/orgs","repos_url":"https://api.github.com/users/dmitriykirilyuk/repos","events_url":"https://api.github.com/users/dmitriykirilyuk/events{/privacy}","received_events_url":"https://api.github.com/users/dmitriykirilyuk/received_events","type":"User","site_admin":false},"created_at":"2017-01-20T00:27:29Z","updated_at":"2017-01-20T00:27:29Z","body":"Привет)\r\nВроде бы легкое задание, но пока читал немного запутался что куда)\r\n\r\nВ задании сказано :\"Объявите переменную getFireballSpeed, которая будет управлять скоростью фаербола в зависимости от направления ветра в игре. Значением этой переменной должна быть функция c одним параметром — left (направление полета фаербола), если параметр left — true, то фаербол летит по ветру и функция возвращает скорость равную 5, иначе он летит против ветра со скоростью 2.\"\r\nМожно ли было сделать как-то так:\r\nvar getFireballSpeed = function calculateSpeed(left) {\r\n  if(left) {\r\n    return 5;\r\n  } else {\r\n    return 2;\r\n  }\r\n};\r\n\r\nЭто мне пришло в голову первым, после того как прочел задание.\r\n\r\nИ еще одно: я так понял что в конце нужно было задать какие-то настройки для этих функций, то есть запустить их? Это делается методом подбора или как?\r\n\r\nСпасибо)"}}
{"actor":{"display_login":"dmitriykirilyuk"}}