1×
Become a member
to unlock all features
Autoplay

    Refactor Named Parameters to Function Composition

    John LindquistJohn Lindquist
    javascriptJavaScript

    We often rely far too heavily on adding parameters to our functions when writing a new function would give us much more flexibility and power. This lesson goes through refactoring a named parameters example to using composition instead to show the thought process on how you think about parameters, functions, and data.

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss