I’ve Cracked the Code, Please Call Tech Support- Episode 15, The $Git Clone Wars. (I’m determined to keep this titling scheme going).

this.scoobySnacks=no;const Scooby-Doo-Crew = {
scoobySnacks: yes
getScoobySnacks: function() {return this.scoobySnacks}
};
Scooby-Doo-Crew.getScoobySnacks();
//returns yes
const retrieveScoobySnacks = Scooby-Doo-Crew.getScoobySnacks;
retrieveScoobySnacks();
//returns no
const boundGetScoobySnacks = retrieveScoobySnacks.bind(Scooby-Doo-Crew);
boundGetScoobySnacks();
//returns yes
<section id="Mystery-Machine" onclick="event1()">
<span id="box-of-Scooby-Snacks" onclick="event2()">
<button id="Scooby-Snack" onclick="event3()">
</button>
</span>
</section>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store