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

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"fibonacci","repo":{"id":271880625,"defaultBranch":"master","name":"javascript-exercises","ownerLogin":"Deepaksahu122","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2020-06-12T20:04:27.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/15267313?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1615820667.146726","canEdit":false,"refType":"branch","currentOid":"888383a44ed7cb735d13b8149b1ad07973dda4a9"},"tree":{"items":[{"name":"README.md","path":"fibonacci/README.md","contentType":"file"},{"name":"fibonacci.js","path":"fibonacci/fibonacci.js","contentType":"file"},{"name":"fibonacci.spec.js","path":"fibonacci/fibonacci.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 - fibonacci\u003c/h1\u003e\u003ca id=\"user-content-exercise-xx---fibonacci\" class=\"anchor\" aria-label=\"Permalink: Exercise XX - fibonacci\" href=\"#exercise-xx---fibonacci\"\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\"\u003eCreate a function that returns a specific member of the fibonacci sequence:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ea series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. The simplest is the series 1, 1, 2, 3, 5, 8, etc.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"fibonacci(4) // returns the 4th member of the series: 3 (1, 1, 2, 3)\nfibonacci(6) // returns 8\"\u003e\u003cpre\u003e\u003cspan class=\"pl-en\"\u003efibonacci\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e4\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e \u003cspan class=\"pl-c\"\u003e// returns the 4th member of the series: 3 (1, 1, 2, 3)\u003c/span\u003e\n\u003cspan class=\"pl-en\"\u003efibonacci\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e6\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e \u003cspan class=\"pl-c\"\u003e// returns 8\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Exercise XX - fibonacci","anchor":"exercise-xx---fibonacci","htmlText":"Exercise XX - fibonacci"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FDeepaksahu122%2Fjavascript-exercises%2Ftree%2Fmaster%2Ffibonacci"}},"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":".gitignore","path":".gitignore","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"}],"totalCount":18}},"fileTreeProcessingTime":11.191308000000001,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/Deepaksahu122/javascript-exercises/branches":{"post":"SOQPt4P3xsp2vDtTYCZWyGZ2khdBgUeIOA0CCtn8KUuQQ1SQPfCmDZb_GkPoKkC170VVNFlF-mbUV1lcoobuiQ"},"/Deepaksahu122/javascript-exercises/branches/fetch_and_merge/master":{"post":"Wq5BSPv4ET979ObyW6MgtQphVnNNralWOntvoF9X2OASRzTukUe3EWvdF4Fij_NlUvPfEQf45fDF48WQqXTuoQ"},"/Deepaksahu122/javascript-exercises/branches/fetch_and_merge/master?discard_changes=true":{"post":"ylFgXbUTliYPCc576G4lgrb8a7F-dep636AlTabF6h-CuBX736wwCB8gPwjRQvZS7m7i0zQgptwgOI99UObcXg"}}},"title":"javascript-exercises/fibonacci at master · Deepaksahu122/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