Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ch2/item11/peanut-butter-sandwich-maker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//making a peanut butter sandwich simply by using function
function sandwichMaker() {
//creating a variable magicIngredient and take a requaired string
var magicIngredient = "peanut butter";
function make(filling) {
return magicIngredient + " and " + filling;
Expand Down