Immutable State, Reducers, and the Clerk at the DMV Office

Posted on January 24, 2021

As you progress through your journey into learning React, you will eventually come across what may seem to be a paradox, the classic question of "what happens when an unstoppable force meets an…

Read full post

Using Window.prompt() within a JS function (more Mad Libs analogies)

Posted on January 22, 2021

Look at this variation of the function I referred to in my last post:We fixed the redundant declaration so now our function works properly. And we moved from being a function argument; it is now a…

Read full post

Understanding Function Arguments Using Mad Libs

Posted on January 21, 2021

One of my students in an intro to JavaScript course asked me what was wrong with this function:The purpose of the function is to apply a percentage to a if the argument is true. But the function…

Read full post