{"id":20285511,"url":"https://github.com/iftekheraziz/api-examples-and-edge-cases","last_synced_at":"2026-04-05T22:31:49.663Z","repository":{"id":170301163,"uuid":"605697412","full_name":"IftekherAziz/API-Examples-and-Edge-Cases","owner":"IftekherAziz","description":"API Examples and Edge Cases","archived":false,"fork":false,"pushed_at":"2023-02-24T18:59:49.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"Main","last_synced_at":"2025-01-14T08:12:15.980Z","etag":null,"topics":["bootstrap5","css3","html5","javascript","json-api","modern-javascript"],"latest_commit_sha":null,"homepage":"","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/IftekherAziz.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":"2023-02-23T17:55:47.000Z","updated_at":"2023-05-28T10:54:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e1f23a4-73e7-41c3-8378-afd14092ac7f","html_url":"https://github.com/IftekherAziz/API-Examples-and-Edge-Cases","commit_stats":null,"previous_names":["iftekheraziz/api-examples-and-edge-cases"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IftekherAziz%2FAPI-Examples-and-Edge-Cases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IftekherAziz%2FAPI-Examples-and-Edge-Cases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IftekherAziz%2FAPI-Examples-and-Edge-Cases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IftekherAziz%2FAPI-Examples-and-Edge-Cases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IftekherAziz","download_url":"https://codeload.github.com/IftekherAziz/API-Examples-and-Edge-Cases/tar.gz/refs/heads/Main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780512,"owners_count":20019061,"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":["bootstrap5","css3","html5","javascript","json-api","modern-javascript"],"created_at":"2024-11-14T14:27:10.285Z","updated_at":"2025-12-02T01:03:41.772Z","avatar_url":"https://github.com/IftekherAziz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"1. const bondCode=` I am Fake James bond . My new code is: 00${7+1+2}`\nIf Fake James gives you the bondCode variable and tells you to find the code in javascript , what will you get?\n\n- 0010\n\n2. const data={ result: [ {userName: {title:'Mr.',name:\"sakib khan\"} } ] }\nHow would you access \"sakib khan\" ?\n\n- (data.result[0].userName.name)\n\n3. Which array method will you use to obtain an array containing the cubes of array p? const p=[1,2,3]; const q=p.__?__( n=\u003e Math.pow(n, 3));\n\n- map\n\n4. How will you make the url dynamic using the food variable?\nconst url = `https://www.themealdb.com/api/json/v1/1/search.php?s={food}`\n\n- Use ${food} instead of {food}\n\n5. How to set image src dynamically? \n\nconst path = \"https://www.images.com/cat.jpg\"; \nconst div= document.createElement('div');\ndiv.innerHTML = `\u003cimg src=__?__ alt = \"\"\u003e`;\n\n- src = ${path}\n\n6. What is textContent in javascript? \n\n- All the text contents of a node and all  its descendants\n\n7. Which one is not a data type in JSON?\n\n- undefined\n\n8. How will you dynamically pass the name variable as a parameter to the loadDetail function?\n\n- `\u003cdiv onclick=\"loadDetails('${name}')\"\u003e Biriyani \u003c/div\u003e`\n\n9. How will you handle the error? \n\nfetch(url)\n .then(res=\u003eres.json())\n .then(data =\u003e console.log(data)\n .__?__(error =\u003e console.log(error))\n\n - catch error\n\n 10. Which one is a proper output? \n\nconst array = { hobbies: [\"dancing\", \"singing\", \"acting\"] };\nconsole.log(JSON.stringify(array));\n\n- {\"hobbies\":[\"dancing\",\"singing\",\"acting\"]}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiftekheraziz%2Fapi-examples-and-edge-cases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiftekheraziz%2Fapi-examples-and-edge-cases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiftekheraziz%2Fapi-examples-and-edge-cases/lists"}