{"id":27433105,"url":"https://github.com/lorussogiacomoluca/commonjs-modules","last_synced_at":"2026-05-12T12:43:37.074Z","repository":{"id":287886469,"uuid":"966102174","full_name":"lorussogiacomoluca/commonjs-modules","owner":"lorussogiacomoluca","description":"Exercise #37 - 14/04/2025","archived":false,"fork":false,"pushed_at":"2025-04-14T13:36:36.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T17:14:03.685Z","etag":null,"topics":["backend","commonjs","javascript","nodejs"],"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/lorussogiacomoluca.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}},"created_at":"2025-04-14T12:05:52.000Z","updated_at":"2025-04-14T13:36:39.000Z","dependencies_parsed_at":"2025-04-14T14:03:52.850Z","dependency_job_id":null,"html_url":"https://github.com/lorussogiacomoluca/commonjs-modules","commit_stats":null,"previous_names":["lorussogiacomoluca/commonjs-modules"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorussogiacomoluca%2Fcommonjs-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorussogiacomoluca%2Fcommonjs-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorussogiacomoluca%2Fcommonjs-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorussogiacomoluca%2Fcommonjs-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lorussogiacomoluca","download_url":"https://codeload.github.com/lorussogiacomoluca/commonjs-modules/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248923768,"owners_count":21183953,"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":["backend","commonjs","javascript","nodejs"],"created_at":"2025-04-14T17:14:05.706Z","updated_at":"2026-05-12T12:43:37.013Z","avatar_url":"https://github.com/lorussogiacomoluca.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📘 Esercizio 37\n\n**esercizio di oggi:** `commonjs-modules`  \n**nome repo:** `commonjs-modules`\n\n📦 **Lavoriamo con i moduli CommonJS** esportando e importando valori e funzioni.  \nSegui questi tre step creando i rispettivi files:\n\n---\n\n## 1️⃣ - `names.js`\n\n1. 🧠 Crea una funzione che accetta due parametri: `firstName`, `lastName`.  \n   La funzione dovrebbe restituire un oggetto con le proprietà `firstName` e `lastName`.\n\n2. 📤 Esporta la funzione dal file.\n\n---\n\n## 2️⃣ - `hobbies.js`\n\n1. 🎯 Crea una funzione che accetta tre parametri: `hobbyOne`, `hobbyTwo`, `hobbyThree`.  \n   La funzione dovrebbe restituire un array di stringhe contenenti gli hobby.\n\n2. 📤 Esporta la funzione dal file.\n\n---\n\n## 3️⃣ - `people.js`\n\n1. 📥 Importa la tua funzione da `names.js`.\n\n2. 📥 Importa la tua funzione da `hobbies.js`.\n\n3. 🧩 Crea una funzione che non ha parametri.  \n   La funzione dovrebbe restituire un oggetto con due proprietà: `fullName` ed `hobbies`.  \n   All'interno della tua funzione, usa le tue due funzioni precedenti per costruire l'oggetto.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florussogiacomoluca%2Fcommonjs-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florussogiacomoluca%2Fcommonjs-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florussogiacomoluca%2Fcommonjs-modules/lists"}