{"id":50771373,"url":"https://github.com/emanuelefavero/js-snacks-functions","last_synced_at":"2026-06-11T19:01:18.245Z","repository":{"id":358988548,"uuid":"1243905615","full_name":"emanuelefavero/js-snacks-functions","owner":"emanuelefavero","description":"An arrow function JavaScript exercise from my web dev course","archived":false,"fork":false,"pushed_at":"2026-05-19T23:39:56.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-20T01:40:05.697Z","etag":null,"topics":["arrow-functions","exercises","javascript","js"],"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/emanuelefavero.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-05-19T19:27:51.000Z","updated_at":"2026-05-19T23:40:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/emanuelefavero/js-snacks-functions","commit_stats":null,"previous_names":["emanuelefavero/js-snacks-functions"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/emanuelefavero/js-snacks-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fjs-snacks-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fjs-snacks-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fjs-snacks-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fjs-snacks-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emanuelefavero","download_url":"https://codeload.github.com/emanuelefavero/js-snacks-functions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fjs-snacks-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34213179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["arrow-functions","exercises","javascript","js"],"created_at":"2026-06-11T19:01:17.319Z","updated_at":"2026-06-11T19:01:18.228Z","avatar_url":"https://github.com/emanuelefavero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS Snacks Functions\n\nEsercizi sulle funzioni in JavaScript dal mio corso Web Dev.\n\n## Come eseguire gli esercizi\n\nGli esercizi si trovano nella cartella `esercizi`.\n\n\u003e Per eseguirne uno, aprire il relativo `index.html` nel browser e controllare il risultato in console, oppure eseguire il file `script.js` con Node.\n\n## Struttura del progetto\n\n```txt\njs-snacks-functions/\n├── esercizi/\n│   ├── 01_calcola_area/\n│   ├── 02_calcola_perimetro/\n│   ├── 03_calcola_velocita/\n│   ├── 04_conta_vocali/\n│   └── 05_bonus/\n└── README.md\n```\n\n## Descrizione\n\nRisolvi gli esercizi che troverai definendo e invocando delle funzioni.\n\n## Bonus\n\nRisolvere gli esercizi usando sia le funzioni tradizionali che le arrow functions.\nRisolvere il quarto esercizio nella cartella `05_bonus`.\n\n## Decisioni Tecniche\n\n- Ho mantenuto ogni esercizio nella propria cartella, seguendo la struttura iniziale del progetto.\n- Per ogni esercizio ho definito e invocato una versione con arrow function e una con funzione tradizionale.\n- Ho usato blocchi `{}` per separare le due soluzioni e poter mantenere lo stesso nome della funzione.\n- Ho mantenuto gli input di test fuori dai blocchi, cosi' le due versioni lavorano sugli stessi dati.\n- Per allenamento, in alcuni esercizi ho usato approcci leggermente diversi tra le due soluzioni, pur mantenendo la stessa logica di base.\n\n## Riferimenti\n\n- [MDN - Functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions)\n- [w3schools Arrow Functions](https://www.w3schools.com/js/js_arrow_function.asp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelefavero%2Fjs-snacks-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femanuelefavero%2Fjs-snacks-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelefavero%2Fjs-snacks-functions/lists"}