{"id":47768506,"url":"https://github.com/munaimpro/programming-hero-assignment-5","last_synced_at":"2026-04-03T08:02:07.738Z","repository":{"id":342751928,"uuid":"1174529632","full_name":"munaimpro/programming-hero-assignment-5","owner":"munaimpro","description":"Programming Hero Assignment 5 - Module 30","archived":false,"fork":false,"pushed_at":"2026-03-07T07:31:18.000Z","size":224,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-07T14:15:15.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/munaimpro.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-06T14:49:04.000Z","updated_at":"2026-03-07T07:31:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/munaimpro/programming-hero-assignment-5","commit_stats":null,"previous_names":["munaimpro/programming-hero-assignment-5"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/munaimpro/programming-hero-assignment-5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munaimpro%2Fprogramming-hero-assignment-5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munaimpro%2Fprogramming-hero-assignment-5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munaimpro%2Fprogramming-hero-assignment-5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munaimpro%2Fprogramming-hero-assignment-5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/munaimpro","download_url":"https://codeload.github.com/munaimpro/programming-hero-assignment-5/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munaimpro%2Fprogramming-hero-assignment-5/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31342720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T06:57:30.245Z","status":"ssl_error","status_checked_at":"2026-04-03T06:57:29.849Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-04-03T08:01:35.601Z","updated_at":"2026-04-03T08:02:07.729Z","avatar_url":"https://github.com/munaimpro.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# programming-hero-assignment-5\n\nProgramming Hero Assignment 5 - Module 30\n\n## Q1 - What is the difference between var, let, and const?\n\nAns - var is function-scoped, redeclarable, and reassigned and hoisted, let is bolck-scoped, and reassignable, but can not be redeclared in the same scope, const is also block-scoped, but does not allow reassignment and redeclare and const need to be initialized when declared.\n\n## Q2 - What is the spread operator (...)?\n\nAns - Spread operator expands any array, object or strings to individual elements. It is an ES6 feature, that can copy an array, or objects elements and make a new array or object by merging the copied element with the concated array or object.\n\n## Q3 - What is the difference between map(), filter(), and forEach()?\n\nAns - map() is used to make a new array by applying a function to each element of the old array or object one-by-one, filter() is used to filter elements of an array or object by matching specific condition(s) and creates a new array or object, and forEach() is used to loop through the elements of an object or an array.\n\n## Q4 - What is an arrow function?\n\nAns - The arrow function is a shortcut to the traditional function. They allow to write function without using the \"function\" keyword. Instead it uses the =\u003e sign. There are no need to use curly braces - {} if there are only single line in the function body, and no need to use return keyword, unless using curly braces. Because the arrow function returns automatically.\n\n## Q5 - What are template literals?\n\nAns - Template literals are JavaScript string literals that allow to write multi line string within the single  backtick `` and also allow to write expressions directly within the string and automatically concatenate them without using any concatenation operators.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunaimpro%2Fprogramming-hero-assignment-5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmunaimpro%2Fprogramming-hero-assignment-5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunaimpro%2Fprogramming-hero-assignment-5/lists"}