DEV Community

Discussion on: JavaScript’s apply, call, and bind explained by hosting a cookout

Collapse
 
sabriele profile image
sabriele • Edited

Hi Kevin! Thanks for the really interesting analogies! I'd just like to point out that your code block for

cookout.grill("steak");
// "I am going to fire up the grill to cook steak with soda to drink!" cookout.grill.call(fancyDinner, "steak");
// "I am going to fire up the grill to cook steak with wine to drink!"

doesn't seem to be showing up properly.

Anyway, thanks again for a great article :)

Collapse
 
kbk0125 profile image
Kevin Kononenko

Whoops! Should be fixed :)