{"id":18996286,"url":"https://github.com/arefshojaei/javascript-class-methods-in-functional","last_synced_at":"2025-07-31T06:07:43.294Z","repository":{"id":170731764,"uuid":"646958130","full_name":"ArefShojaei/Javascript-class-methods-in-functional","owner":"ArefShojaei","description":"Javascript OOP and Functional programming tutorial","archived":false,"fork":false,"pushed_at":"2023-05-29T18:30:47.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T16:27:43.377Z","etag":null,"topics":["fp","functionnal","javascript","oop","tutorial"],"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/ArefShojaei.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-05-29T18:28:36.000Z","updated_at":"2023-06-05T13:38:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"0dd14b51-57b3-4a87-bcd8-a5cfde0f4567","html_url":"https://github.com/ArefShojaei/Javascript-class-methods-in-functional","commit_stats":null,"previous_names":["arefshojaei/javascript-class-methods-in-functional"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArefShojaei%2FJavascript-class-methods-in-functional","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArefShojaei%2FJavascript-class-methods-in-functional/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArefShojaei%2FJavascript-class-methods-in-functional/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArefShojaei%2FJavascript-class-methods-in-functional/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArefShojaei","download_url":"https://codeload.github.com/ArefShojaei/Javascript-class-methods-in-functional/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240010794,"owners_count":19733570,"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":["fp","functionnal","javascript","oop","tutorial"],"created_at":"2024-11-08T17:34:32.695Z","updated_at":"2025-02-21T12:19:49.215Z","avatar_url":"https://github.com/ArefShojaei.png","language":"JavaScript","readme":"## Javascript-class-methods-in-functional\n- This project was created by pure javascript and in the project from ES6 class methods in functional with modular structure\n\n\n- Examples from OOP \u0026 Functional ( FP ) :\n\n```\nStep 1 : \n\n\n* Creating a class\n\n* Using constructor method\n```\n\u003cimg width=\"869\" alt=\"Class Structure in Javascript\" src=\"https://user-images.githubusercontent.com/100516329/205166638-3b97ed73-5f35-4fa6-bc7d-685487079cd5.png\"\u003e\n\u003cimg width=\"879\" alt=\"FP Structure in Javascript\" src=\"https://user-images.githubusercontent.com/100516329/205166650-d3baa3f2-aeb8-49e3-a176-a19371f028df.png\"\u003e\n\n```\nStep 2 : \n\n\n* Creating another class\n\n* Using inheritance in OOP \u0026 FP\n```\n\u003cimg width=\"920\" alt=\"Class Structure in Javascript (1)\" src=\"https://user-images.githubusercontent.com/100516329/205167572-3be083b1-de99-49b4-b8ee-28c1724de3eb.png\"\u003e\n\u003cimg width=\"920\" alt=\"FP Structure in Javascript (1)\" src=\"https://user-images.githubusercontent.com/100516329/205167589-b9bd0b6e-f370-462e-9fcd-8ee5b2cce251.png\"\u003e\n\n```\nStep 3 : \n\n\n* Adding new method for every class\n\n* Calling the method for using that\n```\n\u003cimg width=\"920\" alt=\"Class Structure in Javascript (2)\" src=\"https://user-images.githubusercontent.com/100516329/205167639-ec2f5639-931c-4c44-96ed-871d236843f8.png\"\u003e\n\u003cimg width=\"920\" alt=\"FP Structure in Javascript (2)\" src=\"https://user-images.githubusercontent.com/100516329/205167654-6119e6dd-0372-4f73-8786-36c1b5f58cdc.png\"\u003e\n\n```\nStep 4 : \n\n\n* Using static method in OOP \u0026 FP\n\n* Creating a simple project with OOP \u0026 FP for comparing between both\n```\n\u003cimg width=\"920\" alt=\"Class Structure in Javascript (3)\" src=\"https://user-images.githubusercontent.com/100516329/205169051-7de3d3fe-9897-4439-8234-990202bcc69e.png\"\u003e\n\u003cimg width=\"920\" alt=\"FP Structure in Javascript (3)\" src=\"https://user-images.githubusercontent.com/100516329/205169069-86314da9-587d-4b4a-91ed-370706ac71e5.png\"\u003e\n\n- Finally, if you wanna work with these files, you should open index.html file and you'll see the result in console of browser like this picture\n\n![Demo](https://user-images.githubusercontent.com/100516329/205169484-159007fe-c1fd-4b81-9c33-ba867fc868ba.png)\n\n\n- I hope you'll like it and tnx for watching 🙏❤️\n\n\n---------------\n# new Update\n\n```\nStep 5 : \n\n\n* Using Getter and Setter methods in OOP \u0026 FP\n\n* doing a example for updating a name with those methods\n```\n\n\u003cimg width=\"788\" alt=\"Class Structure in Javascript\" src=\"https://user-images.githubusercontent.com/100516329/206449424-867e2be1-c100-47e4-ab08-5174d9a3a4f9.png\"\u003e\n\u003cimg width=\"788\" alt=\"FP Structure in Javascript\" src=\"https://user-images.githubusercontent.com/100516329/206449799-39f89335-6885-43cb-8dcb-c8f0ad9e5153.png\"\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farefshojaei%2Fjavascript-class-methods-in-functional","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farefshojaei%2Fjavascript-class-methods-in-functional","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farefshojaei%2Fjavascript-class-methods-in-functional/lists"}