Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Required function arguments in Javascript


    In Javascript, all function arguments are optional by default. That means if you ever forget to pass a critical parameter, the code will just fail without warning you what went wrong.

    There are many workarounds for this, and in this lesson, you will learn one of the easiest and foolproof methods of solving this problem.