8000 javascript-exercises/palindromes at master · beanstra/javascript-exercises · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"palindromes","repo":{"id":189226137,"defaultBranch":"master","name":"javascript-exercises","ownerLogin":"beanstra","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2019-05-29T12:59:25.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/50420456?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1634619535.477057","canEdit":false,"refType":"branch","currentOid":"55e23a12af65daf4b422edba410d83ab4d7229da"},"tree":{"items":[{"name":"README.md","path":"palindromes/README.md","contentType":"file"},{"name":"palindromes.js","path":"palindromes/palindromes.js","contentType":"file"},{"name":"palindromes.spec.js","path":"palindromes/palindromes.spec.js","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eExercise XX - palindromes\u003c/h1\u003e\u003ca id=\"user-content-exercise-xx---palindromes\" class=\"anchor\" aria-label=\"Permalink: Exercise XX - palindromes\" href=\"#exercise-xx---palindromes\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eWrite a function that determines whether or not a given string is a palindrome.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eA palindrome is a string that is spelled the same both forwards and backwards, usually without considering punctuation or word breaks:\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003esome palindromes:\u003c/h3\u003e\u003ca id=\"user-content-some-palindromes\" class=\"anchor\" aria-label=\"Permalink: some palindromes:\" href=\"#some-palindromes\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eA car, a man, a maraca.\u003c/li\u003e\n\u003cli\u003eRats live on no evil star.\u003c/li\u003e\n\u003cli\u003eLid off a daffodil.\u003c/li\u003e\n\u003cli\u003eAnimal loots foliated detail of stool lamina.\u003c/li\u003e\n\u003cli\u003eA nut for a jar of tuna.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"palindromes('racecar') // true\npalindromes('tacos') // false\"\u003e\u003cpre\u003e\u003cspan class=\"pl-en\"\u003epalindromes\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-s\"\u003e'racecar'\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e \u003cspan class=\"pl-c\"\u003e// true\u003c/span\u003e\n\u003cspan class=\"pl-en\"\u003epalindromes\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-s\"\u003e'tacos'\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e \u003cspan class=\"pl-c\"\u003e// false\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Exercise XX - palindromes","anchor":"exercise-xx---palindromes","htmlText":"Exercise XX - palindromes"},{"level":3,"text":"some palindromes:","anchor":"some-palindromes","htmlText":"some palindromes:"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fbeanstra%2Fjavascript-exercises%2Ftree%2Fmaster%2Fpalindromes"}},"totalCount":3,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":"caesar","path":"caesar","contentType":"directory"},{"name":"calculator","path":"calculator","contentType":"directory"},{"name":"fibonacci","path":"fibonacci","contentType":"directory"},{"name":"findTheOldest","path":"findTheOldest","contentType":"directory"},{"name":"generator-exercise","path":"generator-exercise","contentType":"directory"},{"name":"getTheTitles","path":"getTheTitles","contentType":"directory"},{"name":"helloWorld","path":"helloWorld","contentType":"directory"},{"name":"leapYears","path":"leapYears","contentType":"directory"},{"name":"palindromes","path":"palindromes","contentType":"directory"},{"name":"pig_latin","path":"pig_latin","contentType":"directory"},{"name":"removeFromArray","path":"removeFromArray","contentType":"directory"},{"name":"repeatString","path":"repeatString","contentType":"directory"},{"name":"reverseString","path":"reverseString","contentType":"directory"},{"name":"snakeCase","path":"snakeCase","contentType":"directory"},{"name":"sumAll","path":"sumAll","contentType":"directory"},{"name":"tempConversion","path":"tempConversion","contentType":"directory"},{"name":".DS_Store","path":".DS_Store","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"}],"totalCount":19}},"fileTreeProcessingTime":2.024995,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/beanstra/javascript-exercises/branches":{"post":"6l7qQY6gcv7rCQZDqB3CiWWMGrfV2p-zf0HKylEHC5fbHTQx0Y9lWcxUxZFHWf8QTkkrfAIb8lbVOD2VFAWYWQ"},"/beanstra/javascript-exercises/branches/fetch_and_merge/master":{"post":"8aqFpEG2EGyCy7DHZiIszTCU2FsQdwl6llpNlnWyk3IZJWMp2y9uMYWEeXCfBuCFu-zP8uau1uCGc6JucL-jzA"},"/beanstra/javascript-exercises/branches/fetch_and_merge/master?discard_changes=true":{"post":"4koQZY63Ozn62uIZd-uEcDX54ZtiSD-JzmF6kro9X60KxfboFC5FZP2VK66Oz0g4voH2MpSR4BPeSJVqvzBvEw"}}},"title":"javascript-exercises/palindromes at master · beanstra/javascript-exercises","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0