How Optional Arguments Work
Now, we put in the optional argument of 1.
Creating Optional ArgumentsLet's get back to actually creating optional arguments in our functions. You will notice that the easiest and best way to create optional arguments is to put them at the end of the argument list. Sometimes you might want two optional arguments where only one has to be required. However, that is much more complicated and outside the scope of this simple tutorial.
Your code will execute in this window.
Let's explore some more tutorials or topics!
Mike Adams Dec. 12, 2013, 12:17 p.m.This page should explain what "console.log" does.