Tag: Feynman technique

  • DevDose: Using the Feynman Technique to Explain Closures

    Day One of Devdose

    The Feynman teqnique is a method used to learn things, as part of the process, you should simplify the concept you are learning and either explain it to someone or imagine you are explaining it to a friend.

    You should avoid the use of any technical or overly complicated words, if you are unable to do this, it might be a sign that you don’t understand the subject well enough.

    Non AI was used in the Making of the Content Above 😁

    Explaining JavaScript Closures

    Im going to try to explain JS closures using the Feynman teqnique above, I might throw in an anology…

    OK, so a closure in JS is a function that is inside another function, but when the inner function is called, it can still remember the variables that was set on the outer function.

    My analogy, I think it could be likened to eating a lemon and your mouth watering, you eat the lemon one time, it’s gone, but if you think about eating the lemon, then your mouth still waters… 😬😁

    I tthink that is pretty bad, maybe the sensation aspect will keep it mind for me.

    JS cclosers can be used to create factory functions too.