{"action":"created","issue":{"url":"https://api.github.com/repos/kodeklubben/oppgaver/issues/292","repository_url":"https://api.github.com/repos/kodeklubben/oppgaver","labels_url":"https://api.github.com/repos/kodeklubben/oppgaver/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/kodeklubben/oppgaver/issues/292/comments","events_url":"https://api.github.com/repos/kodeklubben/oppgaver/issues/292/events","html_url":"https://github.com/kodeklubben/oppgaver/pull/292","id":171142464,"number":292,"title":"Web: JS: Grunnleggende JavaScript","user":{"login":"larsfk","id":5544621,"avatar_url":"https://avatars.githubusercontent.com/u/5544621?v=3","gravatar_id":"","url":"https://api.github.com/users/larsfk","html_url":"https://github.com/larsfk","followers_url":"https://api.github.com/users/larsfk/followers","following_url":"https://api.github.com/users/larsfk/following{/other_user}","gists_url":"https://api.github.com/users/larsfk/gists{/gist_id}","starred_url":"https://api.github.com/users/larsfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsfk/subscriptions","organizations_url":"https://api.github.com/users/larsfk/orgs","repos_url":"https://api.github.com/users/larsfk/repos","events_url":"https://api.github.com/users/larsfk/events{/privacy}","received_events_url":"https://api.github.com/users/larsfk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-15T10:03:50Z","updated_at":"2016-08-15T17:05:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kodeklubben/oppgaver/pulls/292","html_url":"https://github.com/kodeklubben/oppgaver/pull/292","diff_url":"https://github.com/kodeklubben/oppgaver/pull/292.diff","patch_url":"https://github.com/kodeklubben/oppgaver/pull/292.patch"},"body":"Ny oppgave med variabler, funksjoner, if/else og løkker. \r\n\r\nTrenger gjennomlesing! "},"comment":{"url":"https://api.github.com/repos/kodeklubben/oppgaver/issues/comments/239862048","html_url":"https://github.com/kodeklubben/oppgaver/pull/292#issuecomment-239862048","issue_url":"https://api.github.com/repos/kodeklubben/oppgaver/issues/292","id":239862048,"user":{"login":"arve0","id":4810521,"avatar_url":"https://avatars.githubusercontent.com/u/4810521?v=3","gravatar_id":"","url":"https://api.github.com/users/arve0","html_url":"https://github.com/arve0","followers_url":"https://api.github.com/users/arve0/followers","following_url":"https://api.github.com/users/arve0/following{/other_user}","gists_url":"https://api.github.com/users/arve0/gists{/gist_id}","starred_url":"https://api.github.com/users/arve0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arve0/subscriptions","organizations_url":"https://api.github.com/users/arve0/orgs","repos_url":"https://api.github.com/users/arve0/repos","events_url":"https://api.github.com/users/arve0/events{/privacy}","received_events_url":"https://api.github.com/users/arve0/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T17:05:34Z","updated_at":"2016-08-15T17:05:34Z","body":"`;` 👍 Uten `;` helst om en bruker linter eller kompilerer med babel eller lignende.\r\n\r\nKodestil: Meh, men enig på `===`. Fra *JS, the good parts*: Crockford nevner først `===` som likhetstegn. Deretter nevnes `==` som *truthy-operator*. Synes det var en god tilnærming, vs først `==` deretter `===`.\r\n\r\n`use strict`: Ikke nødvendig på dette nivået. Her er **få ting til** > **korrekthet**.\r\n\r\nHoisting kan nevnes, men kanskje ikke her? Hvis det ikke er viktig for oppgaven at variabler kan lagre funksjoner, kan kanskje setningen sløyfes? Synes hoisting og `function bla () {}` er en kjekk ting. Enklere for nybegynnere, en trenger ikke tenke på hvor man legger funksjonen. For avanserte dog.."}}
{"actor":{"display_login":"arve0"}}