This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let cookout = { | |
drink:"soda", | |
grill: function(meal) { | |
console.log("I am going to fire up the grill to cook " + meal + " with " +this.drink +" to drink!"); | |
} | |
} | |
let fancyDinner = { | |
drink: "wine", | |
useOven: function() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookBurger("Jack") | |
// Thanks Jack! Your burger will be ready in 15 minutes. | |
cookSteak("Jill") | |
// Thanks Jill! Your steak will be ready in 10 minutes. | |
cookChicken("David") | |
// Thanks David! Your chicken will be ready in 20 minutes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let cookBurger = cookout.grill.bind(cookout, 15, "burger"); | |
let cookChicken = cookout.grill.bind(cookout, 20, "chicken"); | |
let cookSteak = cookout.grill.bind(cookout, 10, "steak"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let cookout={ | |
grill: function(duration, meat, name){ | |
console.log("Thanks " + name + "! Your " + meat + "will be ready in " + duration + "minutes."); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function boilWater(){}; | |
let generalMeal = "pasta"; | |
let cookout = { | |
grill: function() {} | |
} | |
let fancyDinner = { | |
useOven: function() {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="month february"> | |
<div class="week"></div> | |
<div class="week">Vacation</div> | |
<div class="week"></div> | |
<div class="week"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="month january"> | |
<div class="week">Bill payed</div> | |
<div class="week"></div> | |
<div class="week"></div> | |
<div class="week"></div> | |
</div> | |
<div class="month february"> | |
<div class="week">Bill payed</div> | |
<div class="week"></div> | |
<div class="week"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="month january"> | |
<div class="week">Play soccer</div> | |
<div class="week">Play soccer</div> | |
<div class="week">Play soccer</div> | |
<div class="week">Play soccer</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="month january"> | |
<div class="week"></div> | |
<div class="week"></div> | |
<div class="week"></div> | |
<div class="week"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="year 2018"> | |
<div class="month january"> | |
<div class="week"></div> | |
<div class="week"></div> | |
<div class="week"></div> | |
<div class="week"></div> | |
</div> | |
<div class="month february"> | |
<div class="week"></div> | |
<div class="week"></div> |