{"id":21216651,"url":"https://github.com/jackhowa/exercism-leap","last_synced_at":"2025-03-15T00:41:31.494Z","repository":{"id":78849934,"uuid":"99377506","full_name":"JackHowa/exercism-leap","owner":"JackHowa","description":"Given a year, report if it is a leap year.","archived":false,"fork":false,"pushed_at":"2017-08-04T20:30:21.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T16:44:33.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JackHowa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-04T20:30:08.000Z","updated_at":"2017-08-04T20:30:22.000Z","dependencies_parsed_at":"2023-03-12T06:00:00.924Z","dependency_job_id":null,"html_url":"https://github.com/JackHowa/exercism-leap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHowa%2Fexercism-leap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHowa%2Fexercism-leap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHowa%2Fexercism-leap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHowa%2Fexercism-leap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JackHowa","download_url":"https://codeload.github.com/JackHowa/exercism-leap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243667965,"owners_count":20328036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T21:54:32.324Z","updated_at":"2025-03-15T00:41:31.468Z","avatar_url":"https://github.com/JackHowa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leap\n\nGiven a year, report if it is a leap year.\n\nThe tricky thing here is that a leap year in the Gregorian calendar occurs:\n\n```plain\non every year that is evenly divisible by 4\n  except every year that is evenly divisible by 100\n    unless the year is also evenly divisible by 400\n```\n\nFor example, 1997 is not a leap year, but 1996 is.  1900 is not a leap\nyear, but 2000 is.\n\nIf your language provides a method in the standard library that does\nthis look-up, pretend it doesn't exist and implement it yourself.\n\n## Notes\n\nThough our exercise adopts some very simple rules, there is more to\nlearn!\n\nFor a delightful, four minute explanation of the whole leap year\nphenomenon, go watch [this youtube video][video].\n\n[video]: http://www.youtube.com/watch?v=xX96xng7sAE\n\n## Setup\n\nGo through the setup instructions for JavaScript to\ninstall the necessary dependencies:\n\nhttp://exercism.io/languages/javascript\n\n## Making the Test Suite Pass\n\nExecute the tests with:\n\n    jasmine \u003cexercise-name\u003e.spec.js\n\nReplace `\u003cexercise-name\u003e` with the name of the current exercise. E.g., to\ntest the Hello World exercise:\n\n    jasmine hello-world.spec.js\n\nIn many test suites all but the first test have been skipped.\n\nOnce you get a test passing, you can unskip the next one by\nchanging `xit` to `it`.\n\n## Source\n\nJavaRanch Cattle Drive, exercise 3 [http://www.javaranch.com/leap.jsp](http://www.javaranch.com/leap.jsp)\n\n## Submitting Incomplete Solutions\nIt's possible to submit an incomplete solution so you can see how others have completed the exercise.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackhowa%2Fexercism-leap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackhowa%2Fexercism-leap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackhowa%2Fexercism-leap/lists"}