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> |
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 days = 7; | |
days = days + 2; | |
console.log(days); | |
// ??? |
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 days = 7; | |
console.log("You need to take medication 1 each day for " + days+ " a week."); | |
days = 5; | |
console.log("You need to take medication 2 each day for " + days+ " a week."); |