So at the coding bootcamp I did a bit of explaining the concept of var flag/count as a way to track the state of an application. What seems intuitive now, wasn’t always so. I created a “Kanye Says” coding worksheet to explain the concept of true/false, on/off state in code, by using the example of a light bulb that is switched on and off. Any suggestions/metaphors/examples that you use to explain coding concepts/logic?
[codepen_embed height=”700″ theme_id=”21518″ slug_hash=”YvvPQO” default_tab=”html,result” user=”Kauress”]See the Pen <a href=’https://codepen.io/Kauress/pen/YvvPQO/’>Kanye says, code worksheet #1</a> by Kauress (<a href=’https://codepen.io/Kauress’>@Kauress</a>) on <a href=’https://codepen.io’>CodePen</a>.[/codepen_embed]