I hereby claim:
- I am daytonn on github.
- I am daytonnolan (https://keybase.io/daytonnolan) on keybase.
- I have a public key ASD101iBRMjef4Q1hrrrdzTSwBw72XjomT5DGA2cNaZLbwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<!-- Custom Recipes --> | |
<recipe name="scrapIron" count="3" craft_time="3"> | |
<ingredient name="ingotIron" count="1" grid="-2, -2" /> | |
</recipe> | |
<recipe name="moldyBread" count="2" scrapable="True" craft_time="2"> | |
<ingredient name="shamSandwich" count="1" grid="0, 0" /> | |
</recipe> |
function Person(attributes) { | |
this.firstName = attributes.firstName; | |
this.lastName = attributes.lastName; | |
this.age = attributes.age; | |
this.address = attributes.address; | |
} | |
Person.marry = function(bride, groom) { | |
bride.spouse = groom; | |
groom.spouse = bride; |
function Person(attributes) { | |
this.firstName = attributes.firstName; | |
this.lastName = attributes.lastName; | |
this.age = attributes.age; | |
this.address = attributes.address; | |
} | |
Person.prototype.sayHello = function() { | |
console.log("Hi, my name is " + this.firstName + ". I live in " + this.address.city + ", " + this.address.state + " on " + this.address.street + "."); | |
}; |
// DO NOT define instance methods in this way | |
function Person(attributes) { | |
this.firstName = attributes.firstName; | |
this.lastName = attributes.lastName; | |
this.age = attributes.age; | |
this.address = attributes.address; | |
this.sayHello = function() { | |
console.log("Hi, my name is " + this.firstName + ". I live in " + this.address.city + ", on " + this.address.street + ".") | |
}; |
function Person(attributes) { | |
this.firstName = attributes.firstName; | |
this.lastName = attributes.lastName; | |
this.age = attributes.age; | |
this.address = attributes.address; | |
} | |
var bob = Person({ | |
firstName: "Bob", | |
lastName: "Ject", |
function Person(attributes) { | |
this.firstName = attributes.firstName; | |
this.lastName = attributes.lastName; | |
this.age = attributes.age; | |
this.address = attributes.address; | |
} | |
var bob = new Person({ | |
firstName: "Bob", | |
lastName: "Ject", |
var person = { | |
firstName: "Bob", | |
lastName: "Ject", | |
age: 33, | |
address: { | |
street: "123 Memory Ln", | |
apt: "0x7fff9575c05f", | |
zip: "01101", | |
city: "Browser Town", | |
state: "Mozilla" |