Last 12 weeks · 0 commits
1 of 6 standards met
Expected Behaviour Since the default values were set for the factory method i.e, Car constructor, if user did not pass any arguments at all i.e, it should create a Car object with default values. which would result in this object but instead it throws an error because if nothing is passed options will be . Correction we set the default value of to an empty object. It will then allow assigning all of the default values
Repository: addyosmani/essential-js-design-patterns. Description: Repo for my 'Learning JavaScript Design Patterns' book Stars: 4912, Forks: 804. Primary language: HTML. Languages: HTML (56.2%), JavaScript (41.1%), CSS (2.8%). Homepage: http://addyosmani.com/resources/essentialjsdesignpatterns/book/ Latest release: v1.7.0 (8y ago). Open PRs: 8, open issues: 24. Last activity: 4y ago. Community health: 28%. Top contributors: addyosmani, neojski, pwhisenhunt, dsbonev, Sequoia, ComFreek, silvenon, yuyokk, jugglinmike, karlpatrickespiritu and others.