Remove duplicate initialization of bob variable in the 'Make a Person' bonfire

This commit is contained in:
letalumil
2015-02-16 07:44:06 +03:00
parent e37f69b3dd
commit 0df8fd394d

View File

@ -477,7 +477,7 @@
"Those methods are getFirstName(), getLastName(), getFullName(), setFirstName(), setLastName(), and setFullName().", "Those methods are getFirstName(), getLastName(), getFullName(), setFirstName(), setLastName(), and setFullName().",
"These methods must be the only available means for interacting with the object." "These methods must be the only available means for interacting with the object."
], ],
"challengeSeed": "var Person = function(firstAndLast) {\n return firstAndLast;\r\n};\n\nvar bob = new Person('Bob Ross');\n\nvar bob = new Person('Bob Ross');\nbob.getFullName();", "challengeSeed": "var Person = function(firstAndLast) {\n return firstAndLast;\r\n};\n\nvar bob = new Person('Bob Ross');\nbob.getFullName();",
"tests": [ "tests": [
"expect(Object.keys(bob).length).to.eql(6);", "expect(Object.keys(bob).length).to.eql(6);",
"expect(bob instanceof Person).to.be.true;", "expect(bob instanceof Person).to.be.true;",