{"action":"closed","issue":{"url":"https://api.github.com/repos/alenka1710/js-assignments/issues/3","repository_url":"https://api.github.com/repos/alenka1710/js-assignments","labels_url":"https://api.github.com/repos/alenka1710/js-assignments/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/alenka1710/js-assignments/issues/3/comments","events_url":"https://api.github.com/repos/alenka1710/js-assignments/issues/3/events","html_url":"https://github.com/alenka1710/js-assignments/issues/3","id":143033839,"number":3,"title":"encodeToRot13","user":{"login":"aorgish","id":5950751,"avatar_url":"https://avatars.githubusercontent.com/u/5950751?v=3","gravatar_id":"","url":"https://api.github.com/users/aorgish","html_url":"https://github.com/aorgish","followers_url":"https://api.github.com/users/aorgish/followers","following_url":"https://api.github.com/users/aorgish/following{/other_user}","gists_url":"https://api.github.com/users/aorgish/gists{/gist_id}","starred_url":"https://api.github.com/users/aorgish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aorgish/subscriptions","organizations_url":"https://api.github.com/users/aorgish/orgs","repos_url":"https://api.github.com/users/aorgish/repos","events_url":"https://api.github.com/users/aorgish/events{/privacy}","received_events_url":"https://api.github.com/users/aorgish/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-23T17:53:44Z","updated_at":"2016-03-24T14:35:09Z","closed_at":"2016-03-24T14:35:09Z","body":"https://github.com/alenka1710/js-assignments/blob/0600f3a9b8103bca81335c0a4ed41a84bdfc74cf/task/01-strings-tasks.js#L226-L251\r\n\r\nТут лучше попробовать метод `string.replace`\r\n\r\nПлюс много магических цифр: 65, 90, 26, 97, 122 . Очень тяжело понимать код, когда там такие цифры. Для того, чтобы было понятнее вместо магических цифр принято использовать константы:\r\n```\r\n  const lettersCount = 26;\r\n  const lowercaseOffset = 'a'.charCodeAt(0);\r\n  const uppercaseOffset = 'A'.charCodeAt(0);\r\n```\r\n"}}