{"id":23053930,"url":"https://github.com/nullthefirst/fcc-javascript-calculator","last_synced_at":"2025-02-23T00:47:16.101Z","repository":{"id":48394902,"uuid":"389578253","full_name":"nullthefirst/fcc-javascript-calculator","owner":"nullthefirst","description":"freeCodeCamp - JavaScript Calculator","archived":false,"fork":false,"pushed_at":"2021-07-31T08:47:21.000Z","size":463,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T11:43:01.118Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://null-fcc-javascript-calculator.netlify.app/","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/nullthefirst.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}},"created_at":"2021-07-26T09:26:32.000Z","updated_at":"2021-07-31T08:47:24.000Z","dependencies_parsed_at":"2022-08-24T09:20:19.577Z","dependency_job_id":null,"html_url":"https://github.com/nullthefirst/fcc-javascript-calculator","commit_stats":null,"previous_names":["mr-tey/fcc-javascript-calculator","nullthefirst/fcc-javascript-calculator","pipetauo/fcc-javascript-calculator","chieftey/fcc-javascript-calculator","usheninte/fcc-javascript-calculator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullthefirst%2Ffcc-javascript-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullthefirst%2Ffcc-javascript-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullthefirst%2Ffcc-javascript-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullthefirst%2Ffcc-javascript-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nullthefirst","download_url":"https://codeload.github.com/nullthefirst/fcc-javascript-calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254166,"owners_count":19772386,"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-12-16T00:31:47.011Z","updated_at":"2025-02-23T00:47:16.063Z","avatar_url":"https://github.com/nullthefirst.png","language":"JavaScript","readme":"# JavaScript Calculator\n\n\u003e User Story # 1\n\nMy calculator should contain a clickable element containing an = (equal sign) with a corresponding id=\"equals\".\n\n\u003e User Story # 2\n\nMy calculator should contain 10 clickable elements containing one number each from 0-9, with the following corresponding IDs: id=\"zero\", id=\"one\", id=\"two\", id=\"three\", id=\"four\", id=\"five\", id=\"six\", id=\"seven\", id=\"eight\", and id=\"nine\".\n\n\u003e User Story # 3\n\nMy calculator should contain 4 clickable elements each containing one of the 4 primary mathematical operators with the following corresponding IDs: id=\"add\", id=\"subtract\", id=\"multiply\", id=\"divide\".\n\n\u003e User Story # 4\n\nMy calculator should contain a clickable element containing a . (decimal point) symbol with a corresponding id=\"decimal\".\n\n\u003e User Story # 5\n\nMy calculator should contain a clickable element with an id=\"clear\".\n\n\u003e User Story # 6\n\nMy calculator should contain an element to display values with a corresponding id=\"display\".\n\n\u003e User Story # 7\n\nAt any time, pressing the clear button clears the input and output values, and returns the calculator to its initialized state; 0 should be shown in the element with the id of display.\n\n\u003e User Story # 8\n\nAs I input numbers, I should be able to see my input in the element with the id of display.\n\n\u003e User Story # 9\n\nIn any order, I should be able to add, subtract, multiply and divide a chain of numbers of any length, and when I hit =, the correct result should be shown in the element with the id of display.\n\n\u003e User Story # 10\n\nWhen inputting numbers, my calculator should not allow a number to begin with multiple zeros.\n\n\u003e User Story # 11\n\nWhen the decimal element is clicked, a . should append to the currently displayed value; two . in one number should not be accepted.\n\n\u003e User Story # 12\n\nI should be able to perform any operation (+, -, \\*, /) on numbers containing decimal points.\n\n\u003e User Story # 13\n\nIf 2 or more operators are entered consecutively, the operation performed should be the last operator entered (excluding the negative (-) sign). For example, if 5 + _ 7 = is entered, the result should be 35 (i.e. 5 _ 7); if 5 _ - 5 = is entered, the result should be -25 (i.e. 5 _ (-5)).\n\n\u003e User Story # 14\n\nPressing an operator immediately following = should start a new calculation that operates on the result of the previous evaluation.\n\n\u003e User Story # 15\n\nMy calculator should have several decimal places of precision when it comes to rounding (note that there is no exact standard, but you should be able to handle calculations like 2 / 7 with reasonable precision to at least 4 decimal place\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullthefirst%2Ffcc-javascript-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullthefirst%2Ffcc-javascript-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullthefirst%2Ffcc-javascript-calculator/lists"}