{"id":31051805,"url":"https://github.com/ajay-develops/javascript-code-challeges","last_synced_at":"2026-05-26T16:35:56.602Z","repository":{"id":56766344,"uuid":"524756727","full_name":"ajay-develops/javascript-code-challeges","owner":"ajay-develops","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-15T12:49:11.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T07:59:26.836Z","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/ajay-develops.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":"2022-08-14T19:04:38.000Z","updated_at":"2022-08-14T20:09:35.000Z","dependencies_parsed_at":"2022-08-16T02:20:13.057Z","dependency_job_id":null,"html_url":"https://github.com/ajay-develops/javascript-code-challeges","commit_stats":null,"previous_names":["templar-ajay/javascript-code-challeges","ajay-develops/javascript-code-challeges"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajay-develops/javascript-code-challeges","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-develops%2Fjavascript-code-challeges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-develops%2Fjavascript-code-challeges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-develops%2Fjavascript-code-challeges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-develops%2Fjavascript-code-challeges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajay-develops","download_url":"https://codeload.github.com/ajay-develops/javascript-code-challeges/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-develops%2Fjavascript-code-challeges/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280923472,"owners_count":26414234,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-09-15T00:54:58.393Z","updated_at":"2025-10-25T07:42:43.806Z","avatar_url":"https://github.com/ajay-develops.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### JavaScript Challenges to Test Your JS skills\n\n###### source - linkedin learning - javascript code challenges\n\nsummary of the script files and the topics they cover\n\n1. create objects from class syntax and function syntax\n\n2. create objects from class syntax and function syntax\n\n3. Array.prototype.filter() to filter out vegetarian dishes from all dishes\n\n- example\u003e const arr2 = arr1.filter(element=\u003eelement\u003e10)\n  this will return a new array of the elements of arr1 who were greater than 10\n\n4. Inheritance -\n\n   - exporting and importing fucntions and classes is used more often to inherit classes\n   - to export a class or function\n     - first make sure you make a new `.js` file with just the class of function , if there is any other content then importing the class will also inherit the content of parent `.js` file with it and it's not cool\n     - to export a class or function just put export before the class or function declaration .\n       Examples are\n\n   ```JavaScript\n    export function foo(){\n      console.log(\"hey there, export me \")\n      }\n   ```\n\n   for class syntax\n\n   ```JavaScript\n   export class foo{\n    constructor (a,b,c){\n        this.a = a;\n        -----------\n        -----------\n\n    --------------------\n    -------------------\n    }\n   }\n   ```\n\n   to import this class or function in a script file just write\n\n   ```javascript\n   import { foo } from \"\u003cfile-path-of-the-module\u003e\";\n   ```\n\n   there is another syntax to export a class by using `export default`\n\n   ```js\n   export default foo{\n\n   constructor(a,b,c,......){\n    this.a = a;\n    this.b = b\n    ---------\n    ---------\n   }\n   ------\n   ------\n\n\n   }\n   ```\n\n   how ever then you should not use `{}` to import the class. use `import foo from \"\u003cfile-path\u003e\"` instead\n\n   ```js\n   import foo from \"\u003cfile-path\u003e\";\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajay-develops%2Fjavascript-code-challeges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajay-develops%2Fjavascript-code-challeges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajay-develops%2Fjavascript-code-challeges/lists"}